1 /* |
|
2 * Copyright (c) 2002-2005 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: Declares document for application. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPHONERESOURCE_H |
|
19 #define CPHONERESOURCE_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <akndoc.h> |
|
23 #include <e32cmn.h> |
|
24 #include <BADESCA.H> |
|
25 #include <centralrepository.h> |
|
26 #include "musmanagercommon.h" |
|
27 #include "musmanager.h" |
|
28 |
|
29 // CONSTANTS |
|
30 const TInt KMaxUidStringLength = 8; |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 class CPhoneResources; |
|
34 class COtherResources; |
|
35 // CLASS DECLARATION |
|
36 |
|
37 class COtherResources : public CBase |
|
38 { |
|
39 public: |
|
40 static COtherResources* NewL(); |
|
41 static COtherResources* NewLC(); |
|
42 ~COtherResources(); |
|
43 public : |
|
44 |
|
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 ); |
|
57 |
|
58 public: |
|
59 TInt iActivation; |
|
60 TInt iOperatorVariant; |
|
61 TInt iAuditoryNotification; |
|
62 TInt iPopupNotification; |
|
63 TInt iPopupNotificationType; |
|
64 TInt iEdgeDtmSupport; |
|
65 TInt iSessionSetupMethod; |
|
66 TInt iAutoRecord; |
|
67 TInt iVideoLocation; |
|
68 TInt iSipProfileId; |
|
69 TInt iUiOrientation; |
|
70 TInt iCapabilityQuery; |
|
71 TInt iProductModeVariation; |
|
72 TInt iEncodingDevice; |
|
73 TInt iPrivacyVariation; |
|
74 TInt iDummy; |
|
75 |
|
76 TBuf<NCentralRepositoryConstants::KMaxBinaryLength> iEncoderInfo; |
|
77 TBuf<KMaxUidStringLength> iEncodingDeviceStr; |
|
78 |
|
79 private : |
|
80 void ConstructL(); |
|
81 }; |
|
82 |
|
83 class CPhoneResources : public CBase |
|
84 { |
|
85 public: |
|
86 static CPhoneResources* NewL(); |
|
87 static CPhoneResources* NewLC(); |
|
88 ~CPhoneResources(); |
|
89 public : |
|
90 void SaveL(); |
|
91 void ReadL(); |
|
92 private : |
|
93 void HandleError(TBool aType ,TInt aError , TPtrC aKeyName ); |
|
94 public: |
|
95 TInt iCameraAvailability; |
|
96 TInt iKeypadAvailability; |
|
97 TInt iVideoPlayerAvailability; |
|
98 TInt iCameraInformation; |
|
99 TInt iKodiakPhoneCall; |
|
100 TInt iDummy; |
|
101 |
|
102 private : |
|
103 void ConstructL(); |
|
104 TInt SetValueL(TUid aCategory, TUint aKey, TInt aValue); |
|
105 }; |
|
106 |
|
107 class CMusApplication : public CBase |
|
108 { |
|
109 public: |
|
110 static CMusApplication* NewL(); |
|
111 static CMusApplication* NewLC(); |
|
112 ~CMusApplication(); |
|
113 public : |
|
114 |
|
115 TBool Start(TInt aUseCase); |
|
116 TBool Stop(); |
|
117 TInt MonitorAvailability(); |
|
118 TInt Availability(); |
|
119 TBool AvailabilityInfo(); |
|
120 void MusUseCaseInfo(TBool aStart); |
|
121 private : |
|
122 void HandleError(TInt aError , TPtrC aVal ); |
|
123 public: |
|
124 TInt iUseCase; |
|
125 CMusManager *iMultimediasharing; |
|
126 private : |
|
127 void ConstructL(); |
|
128 }; |
|
129 |
|
130 |
|
131 |
|
132 #endif |
|
133 |
|
134 // End of File |
|
135 |
|