|
1 /* |
|
2 * Copyright (c) 2008 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CMSONESERVICESTATUS_H_ |
|
20 #define CMSONESERVICESTATUS_H_ |
|
21 |
|
22 |
|
23 #include <e32base.h> |
|
24 #include "mpresencetrafficlightsobs.h" |
|
25 |
|
26 |
|
27 class MVPbkContactLink; |
|
28 |
|
29 /** |
|
30 * Branded presence icons handling class. |
|
31 * |
|
32 * @lib cmsserver.exe |
|
33 * @since S60 v5.0 |
|
34 */ |
|
35 NONSHARABLE_CLASS(CCmsOneServiceStatus): public CBase, public MPresenceServiceIconInfo |
|
36 { |
|
37 |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Symbian constructors. |
|
42 * |
|
43 * @param aCallback callback method for notifications |
|
44 * @return CCmsBrandedIcons |
|
45 */ |
|
46 static CCmsOneServiceStatus* NewL( |
|
47 const TDesC& aService, |
|
48 const TDesC8& aBrandId, |
|
49 TInt aBrandLanguage, |
|
50 TBool aIsAvailable); |
|
51 |
|
52 /** |
|
53 * Public destructor. |
|
54 */ |
|
55 virtual ~CCmsOneServiceStatus(); |
|
56 |
|
57 // new methods |
|
58 |
|
59 void SetAvailability( TBool aIsAvailable ); |
|
60 |
|
61 void SetElementL( const TDesC8& aElementId ); |
|
62 |
|
63 TPtrC8 ElementId(); |
|
64 |
|
65 TBool Availability( ); |
|
66 |
|
67 TBool IsSameService( const TDesC& aService ); |
|
68 |
|
69 TPtrC ServiceName(); |
|
70 |
|
71 TPtrC8 BrandId(); |
|
72 |
|
73 TInt BrandLanguage(); |
|
74 |
|
75 private: |
|
76 |
|
77 CCmsOneServiceStatus( TBool aIsAvailable, TInt aBrandLanguage ); |
|
78 |
|
79 void ConstructL( const TDesC& aService, const TDesC8& aBrandId ); |
|
80 |
|
81 // new methods |
|
82 |
|
83 |
|
84 private: |
|
85 |
|
86 TBool iPresenceAvailable; |
|
87 HBufC* iService; |
|
88 HBufC8* iBrandId; |
|
89 HBufC8* iElementId; |
|
90 TInt iBrandLanguage; |
|
91 }; |
|
92 |
|
93 #endif /*CMSONESERVICESTATUS_H_*/ |