tsrc/CenrepEditor/inc/cenrepeditormodel.h
branchRCL_3
changeset 22 73a1feb507fb
parent 0 f0cf47e981f9
child 23 bc78a40cd63c
equal deleted inserted replaced
21:33a5d2bbf6fc 22:73a1feb507fb
    38 	{
    38 	{
    39 	public:
    39 	public:
    40 		static COtherResources* NewL();
    40 		static COtherResources* NewL();
    41 		static COtherResources* NewLC();
    41 		static COtherResources* NewLC();
    42 		~COtherResources();       
    42 		~COtherResources();       
    43     public :
    43     
       
    44 	public:
    44     
    45     
    45         void SaveL();
    46         void SaveL();
    46         void SaveCRKeyValuesL();
       
    47         void ReadL();
       
    48         void ReadCRKeyValuesL();
       
    49         void ReadKeyValueL(CRepository* repository, const TInt & aKey , TInt & aVal);
       
    50         void SetKeyValueL(CRepository* repository, const TInt & aKey , TInt & aVal);
       
    51 
       
    52         void ReadKeyValueL(CRepository* repository, TInt aKey, TDes& aVal);
       
    53         void SetKeyValueL(CRepository* repository, TInt aKey, const TDesC& aVal);
       
    54 
       
    55     private : 
       
    56         void HandleError(TBool aType ,TInt aError , TPtrC aKeyName );
       
    57 
    47 
    58     public:
    48     public:
       
    49         
    59         TInt iActivation;
    50         TInt iActivation;
    60         TInt iOperatorVariant;
    51         TInt iOperatorVariant;
    61         TInt iAuditoryNotification;
    52         TInt iAuditoryNotification;
    62         TInt iPopupNotification;
    53         TInt iPopupNotification;
    63         TInt iPopupNotificationType;
    54         TInt iPopupNotificationType;
    67         TInt iVideoLocation;
    58         TInt iVideoLocation;
    68         TInt iSipProfileId;
    59         TInt iSipProfileId;
    69         TInt iUiOrientation; 
    60         TInt iUiOrientation; 
    70         TInt iCapabilityQuery;  
    61         TInt iCapabilityQuery;  
    71         TInt iProductModeVariation;
    62         TInt iProductModeVariation;
    72         TInt iEncodingDevice;  
    63         TInt iEncodingDevice;
    73         TInt iPrivacyVariation;
    64         TInt iOnlyWithActiveCSCall;
    74         TInt iDummy; 
    65         TInt iOnlyIn3GNetwork;
    75 
       
    76         TBuf<NCentralRepositoryConstants::KMaxBinaryLength>  iEncoderInfo;
    66         TBuf<NCentralRepositoryConstants::KMaxBinaryLength>  iEncoderInfo;
    77         TBuf<KMaxUidStringLength> iEncodingDeviceStr;
    67         TBuf<KMaxUidStringLength> iEncodingDeviceStr;
       
    68         TInt iCameraUsage;
       
    69         TInt iVideoDirection;
       
    70         TInt iVideoBandwidth;
       
    71         TInt iFastMode;
    78         
    72         
    79     private :
    73     private:
    80         void ConstructL();
    74         void ConstructL();
       
    75         void SetKeyValueL(const TUint32& aKey , TInt& aVal);
       
    76         
       
    77     private:
       
    78         CRepository* iRepository;
    81 	};
    79 	};
    82 
    80 
    83 class CPhoneResources : public CBase
    81 class CPhoneResources : public CBase
    84 	{
    82 	{
    85 	public:
    83 	public:
    86 		static CPhoneResources* NewL();
    84 		static CPhoneResources* NewL();
    87 		static CPhoneResources* NewLC();
    85 		static CPhoneResources* NewLC();
    88 		~CPhoneResources();       
    86 		~CPhoneResources();       
    89     public :
    87     
       
    88 	public :
    90         void SaveL();
    89         void SaveL();
    91         void ReadL();        
    90     
    92     private :
       
    93         void HandleError(TBool aType ,TInt aError , TPtrC aKeyName );
       
    94     public:
    91     public:
    95         TInt iCameraAvailability;
    92         TInt iCameraAvailability;
    96         TInt iKeypadAvailability;
    93         TInt iKeypadAvailability;
    97         TInt iVideoPlayerAvailability;
    94         TInt iVideoPlayerAvailability;
    98         TInt iCameraInformation;
    95         TInt iCameraInformation;
    99         TInt iKodiakPhoneCall;
    96         TInt iKodiakPhoneCall;
   100         TInt iDummy; 
       
   101 
    97 
   102     private :
    98     private :
   103         void ConstructL();
    99         void ConstructL();
   104         TInt SetValueL(TUid aCategory, TUint aKey, TInt aValue);
   100         void SetValueL(TUid aCategory, TUint aKey, TInt aValue);
   105 	};
   101 	};
   106 
   102 
   107 class CMusApplication : public CBase
   103 class CMusApplication : public CBase
   108 	{
   104 	{
   109 	public:
   105 	public: