|
1 /* |
|
2 * Copyright (c) 2007 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: DM Screensaver Adapter |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __SCREENSAVER_CLIENT_H__ |
|
21 #define __SCREENSAVER_CLIENT_H__ |
|
22 |
|
23 |
|
24 |
|
25 #include <e32std.h> |
|
26 #include <e32base.h> |
|
27 #include <e32cmn.h> |
|
28 #include <ecom/implementationinformation.h> |
|
29 #include <badesca.h> |
|
30 #include <s32mem.h> |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 class CScreenSaverListInfo : public CBase |
|
37 { |
|
38 |
|
39 public: |
|
40 static CScreenSaverListInfo* NewLC( TUid aUid, |
|
41 TInt aVersion, |
|
42 TDesC* aName, |
|
43 TDesC8* aOpaqueData); |
|
44 |
|
45 static CScreenSaverListInfo* NewL( TUid aUid, |
|
46 TInt aVersion, |
|
47 TDesC* aName, |
|
48 TDesC8* aOpaqueData); |
|
49 |
|
50 ~CScreenSaverListInfo(); |
|
51 |
|
52 IMPORT_C const TDesC& DisplayName() const; |
|
53 |
|
54 IMPORT_C const TDesC8& OpaqueData() const; |
|
55 |
|
56 IMPORT_C TUid ImplementationUid() const; |
|
57 |
|
58 IMPORT_C TInt Version() const; |
|
59 |
|
60 private: |
|
61 |
|
62 CScreenSaverListInfo(TUid aUid, |
|
63 TInt aVersion); |
|
64 void ConstructL(TDesC* aName, |
|
65 TDesC8* aOpaqueData); |
|
66 |
|
67 |
|
68 TUid iUid; |
|
69 TInt iVersion; |
|
70 HBufC* iName; |
|
71 HBufC8* iOpaqueData; |
|
72 }; |
|
73 |
|
74 |
|
75 typedef RPointerArray<CScreenSaverListInfo> RSSListInfoPtrArray; |
|
76 |
|
77 |
|
78 class RScreenSaverClient : public RSessionBase |
|
79 { |
|
80 public: |
|
81 /** |
|
82 * Connect Connects client side to Screen saver server |
|
83 * @return KErrNone Symbian error code |
|
84 */ |
|
85 IMPORT_C TInt Connect(); |
|
86 |
|
87 /** |
|
88 * Close Close server connection |
|
89 */ |
|
90 IMPORT_C void Close(); |
|
91 |
|
92 /** |
|
93 * Use this method to get screen saver list information like name,version,display name |
|
94 */ |
|
95 IMPORT_C void GetScreenSaverListInfoL(RSSListInfoPtrArray &aScreenSaverList); |
|
96 /** |
|
97 * Use this method to get screen saver list UIDs |
|
98 */ |
|
99 //IMPORT_C void GetScreenSaverListL(RArray< TUid >& aUids,CDesCArray& aIds); |
|
100 IMPORT_C void GetScreenSaverListL(CDesCArray& aIds); |
|
101 }; |
|
102 |
|
103 |
|
104 |
|
105 |
|
106 #endif |