|
1 /* |
|
2 * Copyright (c) 2008-2009 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: Sets brand according service id. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __TELBRANDINGSERVERHANDLER_H__ |
|
19 #define __TELBRANDINGSERVERHANDLER_H__ |
|
20 |
|
21 // Include Files |
|
22 #include <e32base.h> // CBase |
|
23 |
|
24 // Constants |
|
25 |
|
26 class CFbsBitmap; |
|
27 class MBSAccess; |
|
28 class CBSFactory; |
|
29 |
|
30 // Class Definitions |
|
31 class CTelBrandingServerHandler : public CBase |
|
32 { |
|
33 public: |
|
34 /** |
|
35 * Constructs branding server and creates access |
|
36 * @param aBrandId Specifies brand which is used |
|
37 */ |
|
38 static CTelBrandingServerHandler* NewLC( const TDesC8& aBrandId ); |
|
39 |
|
40 virtual ~CTelBrandingServerHandler(); |
|
41 |
|
42 /** |
|
43 * Gets brand bitmap and mask according parameters |
|
44 * @param aImageId Specifies brand image which is wanted |
|
45 * @param aBitmap On succesful return contains bitmap |
|
46 * @param aBitmask On succesful return contains mask |
|
47 * @leave If brand not found or other error situations |
|
48 */ |
|
49 void GetBrandIconL( |
|
50 const TDesC8& aImageId, |
|
51 CFbsBitmap*& aBitmap, |
|
52 CFbsBitmap*& aBitmask ) const; |
|
53 |
|
54 private: // new functions |
|
55 CTelBrandingServerHandler(); |
|
56 void ConstructL( const TDesC8& aBrandId ); |
|
57 |
|
58 private: // data |
|
59 |
|
60 /** |
|
61 * Own. |
|
62 */ |
|
63 MBSAccess* iAccess; |
|
64 |
|
65 /** |
|
66 * Own. |
|
67 */ |
|
68 CBSFactory* iFactory; |
|
69 }; |
|
70 |
|
71 #endif // __TELBRANDINGSERVERHANDLER_H__ |
|
72 |
|
73 // end of file |