mmshplugins/mmshsettingsuiplugin/inc/mussettingsmodel.h
branchRCL_3
changeset 10 a184f3d659e6
parent 2 b31261fd4e04
child 22 73a1feb507fb
equal deleted inserted replaced
9:ff8a573c0e2e 10:a184f3d659e6
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  MUSSettingsPlugin model class.
    14 * Description:  MUSSettingsPlugin model class.
    15 *  Version     : %version: 10 % << Don't touch! Updated by Synergy at check-out.
    15 *  Version     : %version: 11 % << Don't touch! Updated by Synergy at check-out.
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 
    19 
    20 
    20 
    21 #ifndef  C_MUSSETTINGSMODEL_H
    21 #ifndef  C_MUSSETTINGSMODEL_H
    22 #define  C_MUSSETTINGSMODEL_H
    22 #define  C_MUSSETTINGSMODEL_H
    23 
    23 
    24 #include <e32base.h>
    24 #include <e32base.h>
    25 #include <badesca.h>
    25 #include <badesca.h>
    26 //class CDesCArray;
    26 
    27 class MMusSIPProfileHandler;
    27 class MMusSIPProfileHandler;
    28 class CMusSIPProfileModel;
    28 class CMusSIPProfileModel;
    29 class CAknMemorySelectionDialogMultiDrive;
    29 class CAknMemorySelectionDialogMultiDrive;
    30 
    30 
    31 
    31 
    65 
    65 
    66     /**
    66     /**
    67      * operator specific variant
    67      * operator specific variant
    68      * @return activation item 
    68      * @return activation item 
    69      */
    69      */
    70     TBool ActivationItem( );
    70     TBool ActivationItem();
    71     
    71     
    72     /**
    72     /**
    73      * Returns the array containing the profile names.
    73      * Returns the array containing the profile names.
    74      * NOTE! The ownership of the array is transferred to the caller.
    74      * NOTE! The ownership of the array is transferred to the caller.
    75      * @return Array consisting of the names of the SIP profiles.
    75      * @return Array consisting of the names of the SIP profiles.
    76      */
    76      */
    77 	CDesCArray* ListOfProfileNamesL();
    77     CDesCArray* ListOfProfileNamesL();
    78 
    78 
    79     /**
    79     /**
    80      * Gets a SIP profile name by ID.
    80      * Gets a SIP profile name by ID.
    81      * Ownership is transferred to caller.
    81      * Ownership is transferred to caller.
    82      * @return SIP profile name.
    82      * @return SIP profile name.
    83      */
    83      */
    84 	HBufC* ProfileNameL( TInt aId );
    84     HBufC* ProfileNameL( TInt aId );
    85 
    85 
    86     /**
    86     /**
    87      * Gets the index of the default SIP profile.
    87      * Gets the index of the default SIP profile.
    88      * @return KErrNotFound, if one does not exist, otherwise index of the
    88      * @return KErrNotFound, if one does not exist, otherwise index of the
    89      *         default SIP profile.
    89      *         default SIP profile.
    90      */
    90      */
    91 	TInt DefaultProfileIndex();
    91     TInt DefaultProfileIndex();
    92 
    92 
    93     /**
    93     /**
    94      * Gets the id of the default SIP profile.
    94      * Gets the id of the default SIP profile.
    95      * @return KErrNotFound, if one does not exist, otherwise id of the
    95      * @return KErrNotFound, if one does not exist, otherwise id of the
    96      *         default SIP profile.
    96      *         default SIP profile.
    97      */
    97      */
    98 	TUint32 DefaultProfileId();
    98     TUint32 DefaultProfileId();
    99 
    99 
   100     /**
   100     /**
   101      * Returns SIP profile index on locally cached array based on id.
   101      * Returns SIP profile index on locally cached array based on id.
   102      * @param aId Profile id
   102      * @param aId Profile id
   103      * @return Profile index or KErrNotFound if no matching profile is found.
   103      * @return Profile index or KErrNotFound if no matching profile is found.
   116      * Returns memory section dialog
   116      * Returns memory section dialog
   117      * @return Memory selction dialog reference
   117      * @return Memory selction dialog reference
   118      */
   118      */
   119     CAknMemorySelectionDialogMultiDrive* MemorySelectionDialogLC();
   119     CAknMemorySelectionDialogMultiDrive* MemorySelectionDialogLC();
   120 
   120 
       
   121     /**
       
   122     * Initialize SIP profile enabler data.
       
   123     */
       
   124     void InitializeProfileEnablerL();
   121     
   125     
   122 public: // constants
   126 public: // constants
   123 
   127 
   124     /**
   128     /**
   125      * Default SIP profile.
   129      * Default SIP profile.
   126      */
   130      */
   127 	static const TInt KVsSipProfileDefault;
   131     static const TInt KVsSipProfileDefault;
   128 
   132     
   129     /**
   133     /**
   130      * SIP profile select.
   134      * SIP profile select.
   131      */
   135      */
   132 	static const TInt KVsSipProfileSelect;
   136     static const TInt KVsSipProfileSelect;
   133 
   137 
   134     /**
   138     /**
   135      * Null selection SIP profile.
   139      * Null selection SIP profile.
   136      */
   140      */
   137 	static const TInt KVsSipProfileSelectNone;
   141     static const TInt KVsSipProfileSelectNone;
   138 
   142 
   139 private:
   143 private:
   140 
   144 
   141     /**
   145     /**
   142      * C++ constructor.
   146      * C++ constructor.
   143      * @param aHandler Reference to SIP profile manipulator.
   147      * @param aHandler Reference to SIP profile manipulator.
   144      */
   148      */
   145     CMusSettingsModel( MMusSIPProfileHandler& aHandler );
   149     CMusSettingsModel( MMusSIPProfileHandler& aHandler );
   146     
   150     
   147     /**
       
   148     * Initialize SIP profile enabler data.
       
   149     */
       
   150     void InitializeProfileEnablerL();
       
   151 
       
   152     void ConstructL();
   151     void ConstructL();
   153 
   152 
   154 private: // data
   153 private: // data
   155 
   154 
   156     /**
   155     /**