|
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 |
|
44 public: |
|
45 |
|
46 void SaveL(); |
|
47 |
|
48 public: |
|
49 |
|
50 TInt iActivation; |
|
51 TInt iOperatorVariant; |
|
52 TInt iAuditoryNotification; |
|
53 TInt iPopupNotification; |
|
54 TInt iPopupNotificationType; |
|
55 TInt iEdgeDtmSupport; |
|
56 TInt iSessionSetupMethod; |
|
57 TInt iAutoRecord; |
|
58 TInt iVideoLocation; |
|
59 TInt iSipProfileId; |
|
60 TInt iUiOrientation; |
|
61 TInt iCapabilityQuery; |
|
62 TInt iProductModeVariation; |
|
63 TInt iEncodingDevice; |
|
64 TInt iOnlyWithActiveCSCall; |
|
65 TInt iOnlyIn3GNetwork; |
|
66 TBuf<NCentralRepositoryConstants::KMaxBinaryLength> iEncoderInfo; |
|
67 TBuf<KMaxUidStringLength> iEncodingDeviceStr; |
|
68 TInt iCameraUsage; |
|
69 TInt iVideoDirection; |
|
70 TInt iVideoBandwidth; |
|
71 TInt iFastMode; |
|
72 |
|
73 private: |
|
74 void ConstructL(); |
|
75 void SetKeyValueL(const TUint32& aKey , TInt& aVal); |
|
76 |
|
77 private: |
|
78 CRepository* iRepository; |
|
79 }; |
|
80 |
|
81 class CPhoneResources : public CBase |
|
82 { |
|
83 public: |
|
84 static CPhoneResources* NewL(); |
|
85 static CPhoneResources* NewLC(); |
|
86 ~CPhoneResources(); |
|
87 |
|
88 public : |
|
89 void SaveL(); |
|
90 |
|
91 public: |
|
92 TInt iCameraAvailability; |
|
93 TInt iKeypadAvailability; |
|
94 TInt iVideoPlayerAvailability; |
|
95 TInt iCameraInformation; |
|
96 TInt iKodiakPhoneCall; |
|
97 |
|
98 private : |
|
99 void ConstructL(); |
|
100 void SetValueL(TUid aCategory, TUint aKey, TInt aValue); |
|
101 }; |
|
102 |
|
103 class CMusApplication : public CBase |
|
104 { |
|
105 public: |
|
106 static CMusApplication* NewL(); |
|
107 static CMusApplication* NewLC(); |
|
108 ~CMusApplication(); |
|
109 public : |
|
110 |
|
111 TBool Start(TInt aUseCase); |
|
112 TBool Stop(); |
|
113 TInt MonitorAvailability(); |
|
114 TInt Availability(); |
|
115 TBool AvailabilityInfo(); |
|
116 void MusUseCaseInfo(TBool aStart); |
|
117 private : |
|
118 void HandleError(TInt aError , TPtrC aVal ); |
|
119 public: |
|
120 TInt iUseCase; |
|
121 CMusManager *iMultimediasharing; |
|
122 private : |
|
123 void ConstructL(); |
|
124 }; |
|
125 |
|
126 |
|
127 |
|
128 #endif |
|
129 |
|
130 // End of File |
|
131 |