epoc32/include/mw/mproengtones.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@4
     5
* under the terms of "Eclipse Public License v1.0"
williamr@2
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description:  Profile tones interface.
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
williamr@2
    18
williamr@2
    19
williamr@2
    20
#ifndef MPROENGTONES_H
williamr@2
    21
#define MPROENGTONES_H
williamr@2
    22
williamr@2
    23
// INCLUDES
williamr@2
    24
#include <e32std.h>
williamr@2
    25
williamr@2
    26
// FORWARD DECLARATIONS
williamr@2
    27
class MProEngTonesExt;
williamr@2
    28
williamr@2
    29
// CLASS DECLARATION
williamr@2
    30
williamr@2
    31
/**
williamr@2
    32
*  Profile tones interface.
williamr@2
    33
*  This interface offers methods to get line 1 and 2 ringing tone,
williamr@2
    34
*  message alert tone, e-mail alert tone and video call alert tone.
williamr@2
    35
*
williamr@2
    36
*  @lib ProfileEngine.lib
williamr@2
    37
*  @since 3.1
williamr@2
    38
*/
williamr@2
    39
class MProEngTones
williamr@2
    40
    {
williamr@2
    41
    protected:  // Destructor
williamr@2
    42
williamr@2
    43
        virtual ~MProEngTones() {};
williamr@2
    44
williamr@2
    45
    public:
williamr@2
    46
williamr@2
    47
        /**
williamr@2
    48
        * Returns line 1 ringing tone file name.
williamr@2
    49
        * @since 3.1
williamr@2
    50
        * @return Returns line 1 ringing tone file name.
williamr@2
    51
        */
williamr@2
    52
        virtual const TDesC& RingingTone1() const = 0;
williamr@2
    53
williamr@2
    54
        /**
williamr@2
    55
        * Returns line 2 ringing tone file name. If alternate line service
williamr@2
    56
        * isn't supported by the network, this isn't used for anything.
williamr@2
    57
        * @since 3.1
williamr@2
    58
        * @return Returns line 2 ringing tone file name.
williamr@2
    59
        */
williamr@2
    60
        virtual const TDesC& RingingTone2() const = 0;
williamr@2
    61
williamr@2
    62
        /**
williamr@2
    63
        * Returns message alert tone file name.
williamr@2
    64
        * @since 3.1
williamr@2
    65
        * @return Returns message alert tone file name.
williamr@2
    66
        */
williamr@2
    67
        virtual const TDesC& MessageAlertTone() const = 0;
williamr@2
    68
williamr@2
    69
        /**
williamr@2
    70
        * Returns Email alert tone file name.
williamr@2
    71
        * @since 3.1
williamr@2
    72
        * @return Returns Email alert tone file name.
williamr@2
    73
        */
williamr@2
    74
        virtual const TDesC& EmailAlertTone() const = 0;
williamr@2
    75
williamr@2
    76
        /**
williamr@2
    77
        * Returns Video call ringing tone file name.
williamr@2
    78
        * @since 3.1
williamr@2
    79
        * @return Returns Video call ringing tone file name.
williamr@2
    80
        */
williamr@2
    81
        virtual const TDesC& VideoCallRingingTone() const = 0;
williamr@2
    82
williamr@2
    83
        /**
williamr@2
    84
        * Set line 1 ringing tone.
williamr@2
    85
        * @since 3.1
williamr@2
    86
        * @param aRingingTone File name of the ringing tone. If the ringing tone
williamr@2
    87
        *        should be left empty, this should be KNullDesC.
williamr@2
    88
        * @return KErrNone if succesful, KErrAccessDenied if line 1 ringing tone
williamr@2
    89
        *         setting of this profile is read-only.
williamr@2
    90
        */
williamr@2
    91
        virtual TInt SetRingingTone1L( const TDesC& aRingingTone ) = 0;
williamr@2
    92
williamr@2
    93
        /**
williamr@2
    94
        * Set line 2 ringing tone. Note, that this tone can be set even if the
williamr@2
    95
        * network does not support the alternate line service. In this case, the
williamr@2
    96
        * value of line 2 ringing tone is still saved in Profiles data but it
williamr@2
    97
        * isn't used for anything.
williamr@2
    98
        * @since 3.1
williamr@2
    99
        * @param aRingingTone File name of the ringing tone. If the line 2
williamr@2
   100
        *        ringing tone should be left empty, this should be KNullDesC.
williamr@2
   101
        * @return KErrNone if succesful, KErrAccessDenied if line 2 ringing tone
williamr@2
   102
        *         setting of this profile is read-only.
williamr@2
   103
        */
williamr@2
   104
        virtual TInt SetRingingTone2L( const TDesC& aRingingTone ) = 0;
williamr@2
   105
williamr@2
   106
        /**
williamr@2
   107
        * Set message alert tone.
williamr@2
   108
        * @since 3.1
williamr@2
   109
        * @param aMessageAlertTone File name of the message alert tone. If the
williamr@2
   110
        *        alert tone should be left empty, this should be KNullDesC.
williamr@2
   111
        * @return KErrNone if succesful, KErrAccessDenied if message alert tone
williamr@2
   112
        *         setting of this profile is read-only.
williamr@2
   113
        */
williamr@2
   114
        virtual TInt SetMessageAlertToneL(
williamr@2
   115
            const TDesC& aMessageAlertTone ) = 0;
williamr@2
   116
williamr@2
   117
        /**
williamr@2
   118
        * Set Email alert tone file name.
williamr@2
   119
        * @since 3.1
williamr@2
   120
        * @param aEmailAlertTone Email alert tone. If the alert tone should be
williamr@2
   121
        *        be left empty, this should be KNullDesC.
williamr@2
   122
        * @return KErrNone if succesful, KErrAccessDenied if e-mail alert tone
williamr@2
   123
        *         setting of this profile is read-only.
williamr@2
   124
        */
williamr@2
   125
        virtual TInt SetEmailAlertToneL(
williamr@2
   126
            const TDesC& aEmailAlertTone ) = 0;
williamr@2
   127
williamr@2
   128
        /**
williamr@2
   129
        * Set Video call ringing tone file name.
williamr@2
   130
        * @since 3.1
williamr@2
   131
        * @param aRingingTone Video call ringing tone file name. If the alert
williamr@2
   132
        *        tone should be left empty, this should be KNullDesC.
williamr@2
   133
        * @return KErrNone if succesful, KErrAccessDenied if video call ringing
williamr@2
   134
        *         tone setting of this profile is read-only.
williamr@2
   135
        */
williamr@2
   136
        virtual TInt SetVideoCallRingingToneL(
williamr@2
   137
            const TDesC& aRingingTone ) = 0;
williamr@2
   138
williamr@2
   139
    private: // Extension interface
williamr@2
   140
williamr@2
   141
        /**
williamr@2
   142
        * This member is internal and not intended for use.
williamr@2
   143
        */
williamr@2
   144
        virtual MProEngTonesExt* Extension() { return NULL; }
williamr@2
   145
williamr@2
   146
    };
williamr@2
   147
williamr@2
   148
#endif      // MPROENGTONES_H
williamr@2
   149
williamr@2
   150
// End of File
williamr@2
   151