mmshplugins/mmshsettingsuiplugin/inc/mussettingsmodel.h
changeset 2 b31261fd4e04
parent 0 f0cf47e981f9
child 13 a184f3d659e6
equal deleted inserted replaced
1:065f1826587f 2:b31261fd4e04
    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: 8.1.2.1.3 % << Don't touch! Updated by Synergy at check-out.
    15 *  Version     : %version: 10 % << 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 	"mussettings.h"
    24 #include <e32base.h>
    25 
    25 #include <badesca.h>
       
    26 //class CDesCArray;
    26 class MMusSIPProfileHandler;
    27 class MMusSIPProfileHandler;
    27 class CMusSIPProfileModel;
    28 class CMusSIPProfileModel;
    28 class MultimediaSharingSettings;
       
    29 
       
    30 class CAknMemorySelectionDialogMultiDrive;
    29 class CAknMemorySelectionDialogMultiDrive;
    31 
    30 
    32 
    31 
    33 /**
    32 /**
    34  *  CMusSettingsModel is the model class of GS application.
    33  *  CMusSettingsModel is the model class of GS application.
    35  *  It provides functions to get and set setting values.
    34  *  It provides functions to get and set setting values.
    36  *
       
    37  *  @since S60 v3.2
       
    38  */
    35  */
    39 class CMusSettingsModel : public CBase
    36 class CMusSettingsModel : public CBase
    40     {
    37     {
    41 public:
    38 public:
    42 
    39 
    51      * Destructor.
    48      * Destructor.
    52      */
    49      */
    53     ~CMusSettingsModel();
    50     ~CMusSettingsModel();
    54 
    51 
    55     /**
    52     /**
    56      * Returns operator variant mode.
       
    57      * @return 0: Standard (MusSettingsKeys::EStandard)
       
    58      *         1: Operator Specific (MusSettingsKeys::EOperatorSpecific)
       
    59      */
       
    60     MusSettingsKeys::TOperatorVariant VSSettingsOperatorVariantL();
       
    61 
       
    62     /**
       
    63      * Returns VS activation mode.
       
    64      * @return 0: Always (MusSettingsKeys::EAlwaysActive)
       
    65      *         1: Automatic (MusSettingsKeys::EActiveInHomeNetworks)
       
    66      *         2: Off (MusSettingsKeys::ENever)
       
    67      */
       
    68     MusSettingsKeys::TActivation VSSettingsActivationL();
       
    69 
       
    70     /**
       
    71      * Returns SIP profile mode.
       
    72      * @return 0: Use default SIP profile.
       
    73      *         1: Use user selected SIP profile.
       
    74      */
       
    75     TInt VSSettingsProfileL();
       
    76 
       
    77     /**
       
    78      * Returns video autorecord mode.
       
    79      * @return 0: on  (MusSettingsKeys::EAutoRecordOn)
       
    80      *		   1: off (MusSettingsKeys::EAutoRecordOff)
       
    81      */
       
    82     MusSettingsKeys::TAutoRecord VSSettingsAutoRecordL();
       
    83 
       
    84     /**
       
    85      * Returns recorded video saving mode.
    53      * Returns recorded video saving mode.
    86      * @return 2: phone memory 
    54      * @return 2: phone memory 
    87      *         4: memory card 
    55      *         4: memory card 
    88      */
    56      */
    89     TInt VSSettingsRecordedVideoSavingL();
    57     TInt VSSettingsRecordedVideoSavingL();
    90 
       
    91     /**
       
    92      * Returns state of note (on/off). This setting is called "Capability
       
    93      * auditory note" in standard variant and "Alerts" in operator specific
       
    94      * variant.
       
    95      * @return 0: enabled (MusSettingsKeys::EAuditoryNotificationOn)
       
    96      *         1: disabled (MusSettingsKeys::EAuditoryNotificationOff)
       
    97      */
       
    98     MusSettingsKeys::TAuditoryNotification VSSettingsNoteL();
       
    99 
       
   100     /**
       
   101      * Sets packet data VS activation mode.
       
   102      * @param aActivation Activation mode.
       
   103      */
       
   104     void SetVSSettingsActivationL(
       
   105     		const MusSettingsKeys::TActivation aActivation );
       
   106 
       
   107     /**
       
   108      * Sets SIP profile mode.
       
   109      * @param aProfile Profile id.
       
   110      */
       
   111     void SetVSSettingsProfileL( const TInt aProfile );
       
   112 
       
   113     /**
       
   114      * Sets video autorecord mode.
       
   115      * @param aAutoRecord save mode of video.
       
   116      */
       
   117     void SetVSSettingsAutoRecordL(
       
   118     		const MusSettingsKeys::TAutoRecord aAutoRecord );
       
   119 
       
   120     /**
       
   121     * Sets location of video saving.
       
   122     * @param aVideoLocation location of video
       
   123     */
       
   124     void SetVSSettingsRecordedVideoSavingL( const TInt aVideoLocation );
       
   125 
       
   126     /**
       
   127      * Sets mode of note ("Capability auditory note" in standard variant and
       
   128      * "Alerts" in operator specific variant).
       
   129      * @param aValue New state for note (enabled/disabled).
       
   130      */
       
   131     void SetVSSettingsNoteL(
       
   132     		const MusSettingsKeys::TAuditoryNotification aValue );
       
   133     
       
   134     
    58     
   135     /**
    59     /**
   136      * operator specific variant
    60      * operator specific variant
   137      * Sets activation item 
    61      * Sets activation item 
   138      * @param aActive (enabled/disabled).
    62      * @param aActive (enabled/disabled).
   139      */
    63      */
   140     void SetActivationItem( TBool aActive );
    64     void SetActivationItem( TBool aActive );
   141 
    65 
   142 
       
   143     /**
    66     /**
   144      * operator specific variant
    67      * operator specific variant
   145      * @return activation item 
    68      * @return activation item 
   146      */
    69      */
   147     TBool ActivationItem( );
    70     TBool ActivationItem( );
       
    71     
   148     /**
    72     /**
   149      * Returns the array containing the profile names.
    73      * Returns the array containing the profile names.
   150      * NOTE! The ownership of the array is transferred to the caller.
    74      * NOTE! The ownership of the array is transferred to the caller.
   151      * @return Array consisting of the names of the SIP profiles.
    75      * @return Array consisting of the names of the SIP profiles.
   152      */
    76      */
   231 
   155 
   232     /**
   156     /**
   233      * SIP profile handler.
   157      * SIP profile handler.
   234      */
   158      */
   235     MMusSIPProfileHandler& iHandler;
   159     MMusSIPProfileHandler& iHandler;
   236 
       
   237     /**
       
   238      * Central repository keys of video sharing.
       
   239      * Own.
       
   240      */
       
   241     MultimediaSharingSettings* iMSSettingsKeys;
       
   242     
   160     
   243     /**
   161     /**
   244      * Operator variant. If SIP profile disabled
   162      * Operator variant. If SIP profile disabled
   245      */
   163      */
   246     TBool iProfileDisabled;
   164     TBool iProfileDisabled;