profilesservices/ProfileEngine/EngInc/MProfileExtended.h
changeset 0 8c5d936e5675
equal deleted inserted replaced
-1:000000000000 0:8c5d936e5675
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Extended profile interface.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __MPROFILEEXTENDED_H__
       
    21 #define __MPROFILEEXTENDED_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include <MProfile.h>
       
    25 
       
    26 // DATA TYPES
       
    27 enum TProfileFlags
       
    28     {
       
    29     EProfileFlagRingingTone =               0x0001,
       
    30     EProfileFlagRingingType =               0x0002,
       
    31     EProfileFlagRingingVolume =             0x0004,
       
    32     EProfileFlagMessageAlertTone =          0x0008,
       
    33     EProfileFlagInstantMessageAlertTone =   0x0010,
       
    34     EProfileFlagVibratingAlert =            0x0020,
       
    35     EProfileFlagKeypadVolume =              0x0040,
       
    36     EProfileFlagWarningTones =              0x0080,
       
    37     EProfileFlagAlertFor =                  0x0100,
       
    38     EProfileFlagAvailabilityAttribute =     0x0200,
       
    39     EProfileFlagStatusMessage =             0x0400,
       
    40     EProfileFlagProfileName =               0x0800,
       
    41     EProfileFlagEmailAlertTone =            0x1000,
       
    42     EProfileFlagVideoCallRingingTone =      0x2000,
       
    43     EProfileFlagMediaVolume =               0x4000,
       
    44     EProfileFlagTextToSpeechTone =          0x8000,
       
    45 //  Free slot              =               0x10000,
       
    46     EProfileFlagPttTone =                  0x20000,
       
    47     EProfileFlagPttStatus =                0x40000,
       
    48     EProfileFlag3DEffect =                 0x80000,
       
    49     EProfileFlag3DEcho =                  0x100000,
       
    50     EProfileFlagTactileFeedback =         0x200000,
       
    51     EProfileFlagAudioFeedback =           0x400000,
       
    52     EProfileFlagAll =                       0xFFFF
       
    53     };
       
    54 
       
    55 // FORWARD DECLARATIONS
       
    56 class MProfileSetName;
       
    57 class MProfileSetTones;
       
    58 class MProfilePresence;
       
    59 class MProfileSetPresence;
       
    60 class MProfileSetExtraTones;
       
    61 class MProfileSetExtraSettings;
       
    62 class CRepository;
       
    63 
       
    64 // CLASS DECLARATION
       
    65 
       
    66 /**
       
    67 *  Extended profile interface.
       
    68 *  This interface extend MProfile interface.
       
    69 *
       
    70 *  @lib N/A
       
    71 *  @since 2.0
       
    72 */
       
    73 class MProfileExtended : public MProfile
       
    74     {
       
    75     protected:  // Destructor
       
    76 
       
    77         virtual ~MProfileExtended() {};
       
    78 
       
    79     public: // New functions
       
    80 
       
    81         /**
       
    82         * This method set alert for items to the profile.
       
    83         * @since 2.0
       
    84         * @param aAlertFor Alert for item array.
       
    85         */
       
    86         virtual void SetAlertForL(
       
    87             const TArray<TContactItemId>& aAlertFor ) = 0;
       
    88 
       
    89         /**
       
    90         * Returns set profile name interface.
       
    91         * @since 2.0
       
    92         * @return Returns set profile name interface.
       
    93         */
       
    94         virtual MProfileSetName& ProfileSetName() const = 0;
       
    95 
       
    96         /**
       
    97         * Returns set profile tones interface.
       
    98         * @since 2.0
       
    99         * @return Returns set profile tones interface.
       
   100         */
       
   101         virtual MProfileSetTones& ProfileSetTones() const = 0;
       
   102 
       
   103         /**
       
   104         * Returns profile presence interface.
       
   105         * @since 2.0
       
   106         * @return Returns profile presence interface.
       
   107         */
       
   108         virtual const MProfilePresence& ProfilePresence() const = 0;
       
   109 
       
   110         /**
       
   111         * Returns set profile presence interface.
       
   112         * @since 2.0
       
   113         * @return Returns set profile presence interface.
       
   114         */
       
   115         virtual MProfileSetPresence& ProfileSetPresence() const = 0;
       
   116 
       
   117         /**
       
   118         * Returns set profile extra tones interface.
       
   119         * @since 2.0
       
   120         * @return Returns set profile extra tones interface.
       
   121         */
       
   122         virtual MProfileSetExtraTones& ProfileSetExtraTones() const = 0;
       
   123 
       
   124         /**
       
   125         * Returns profile modifiable flags. See TProfileFlags.
       
   126         * @since 2.0
       
   127         * @return Returns profile modifiable flags.
       
   128         */
       
   129         virtual TUint32 ModifiableFlags() const = 0;
       
   130 
       
   131         /**
       
   132         * Returns profile visible flags. See TProfileFlags.
       
   133         * @since 2.0
       
   134         * @return Returns profile visible flags.
       
   135         */
       
   136         virtual TUint32 VisibleFlags() const = 0;
       
   137 
       
   138         /**
       
   139         * Externalize data to Central Repository.
       
   140         * @since 2.8
       
   141         * @param aCenRep Central Repository object to write the settings
       
   142         */
       
   143         virtual void ExternalizeL( CRepository& aCenRep ) = 0;
       
   144 
       
   145         /**
       
   146         * Returns set profile extra settings interface.
       
   147         * @since 3.0
       
   148         * @return set profile extra settings interface.
       
   149         */
       
   150         virtual MProfileSetExtraSettings& ProfileSetExtraSettings() const = 0;
       
   151 
       
   152     };
       
   153 
       
   154 #endif      // __MPROFILEEXTENDED_H__
       
   155 
       
   156 // End of File