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 |
43 public : |
44 public: |
|
45 |
44 |
46 void SaveL(); |
45 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 ); |
47 |
57 |
48 public: |
58 public: |
49 |
|
50 TInt iActivation; |
59 TInt iActivation; |
51 TInt iOperatorVariant; |
60 TInt iOperatorVariant; |
52 TInt iAuditoryNotification; |
61 TInt iAuditoryNotification; |
53 TInt iPopupNotification; |
62 TInt iPopupNotification; |
54 TInt iPopupNotificationType; |
63 TInt iPopupNotificationType; |
58 TInt iVideoLocation; |
67 TInt iVideoLocation; |
59 TInt iSipProfileId; |
68 TInt iSipProfileId; |
60 TInt iUiOrientation; |
69 TInt iUiOrientation; |
61 TInt iCapabilityQuery; |
70 TInt iCapabilityQuery; |
62 TInt iProductModeVariation; |
71 TInt iProductModeVariation; |
63 TInt iEncodingDevice; |
72 TInt iEncodingDevice; |
64 TInt iOnlyWithActiveCSCall; |
73 TInt iPrivacyVariation; |
65 TInt iOnlyIn3GNetwork; |
74 TInt iDummy; |
|
75 |
66 TBuf<NCentralRepositoryConstants::KMaxBinaryLength> iEncoderInfo; |
76 TBuf<NCentralRepositoryConstants::KMaxBinaryLength> iEncoderInfo; |
67 TBuf<KMaxUidStringLength> iEncodingDeviceStr; |
77 TBuf<KMaxUidStringLength> iEncodingDeviceStr; |
68 TInt iCameraUsage; |
|
69 TInt iVideoDirection; |
|
70 TInt iVideoBandwidth; |
|
71 TInt iFastMode; |
|
72 |
78 |
73 private: |
79 private : |
74 void ConstructL(); |
80 void ConstructL(); |
75 void SetKeyValueL(const TUint32& aKey , TInt& aVal); |
|
76 |
|
77 private: |
|
78 CRepository* iRepository; |
|
79 }; |
81 }; |
80 |
82 |
81 class CPhoneResources : public CBase |
83 class CPhoneResources : public CBase |
82 { |
84 { |
83 public: |
85 public: |
84 static CPhoneResources* NewL(); |
86 static CPhoneResources* NewL(); |
85 static CPhoneResources* NewLC(); |
87 static CPhoneResources* NewLC(); |
86 ~CPhoneResources(); |
88 ~CPhoneResources(); |
87 |
89 public : |
88 public : |
|
89 void SaveL(); |
90 void SaveL(); |
90 |
91 void ReadL(); |
|
92 private : |
|
93 void HandleError(TBool aType ,TInt aError , TPtrC aKeyName ); |
91 public: |
94 public: |
92 TInt iCameraAvailability; |
95 TInt iCameraAvailability; |
93 TInt iKeypadAvailability; |
96 TInt iKeypadAvailability; |
94 TInt iVideoPlayerAvailability; |
97 TInt iVideoPlayerAvailability; |
95 TInt iCameraInformation; |
98 TInt iCameraInformation; |
96 TInt iKodiakPhoneCall; |
99 TInt iKodiakPhoneCall; |
|
100 TInt iDummy; |
97 |
101 |
98 private : |
102 private : |
99 void ConstructL(); |
103 void ConstructL(); |
100 void SetValueL(TUid aCategory, TUint aKey, TInt aValue); |
104 TInt SetValueL(TUid aCategory, TUint aKey, TInt aValue); |
101 }; |
105 }; |
102 |
106 |
103 class CMusApplication : public CBase |
107 class CMusApplication : public CBase |
104 { |
108 { |
105 public: |
109 public: |