|
1 /* |
|
2 * Copyright (c) 2003 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 __CDLCLIENT_H__ |
|
20 #define __CDLCLIENT_H__ |
|
21 |
|
22 #include <e32base.h> |
|
23 #include "CdlClientServerStd.h" |
|
24 |
|
25 class CCdlUids; |
|
26 class CCdlRefs; |
|
27 class CCdlNames; |
|
28 class TDriveUnit; |
|
29 |
|
30 /** |
|
31 * Client side of the client/server. |
|
32 * This class also adds some higher level functionality over the messages passed |
|
33 * between client and server. |
|
34 */ |
|
35 class RCdlSession : public RSessionBase |
|
36 { |
|
37 public: |
|
38 TInt Connect(); |
|
39 void RequestGetCustL(const CCdlUids& aUids, TInt& aCustSize) const; |
|
40 TInt GetCust(TDes8& aCust, TInt& aNewSize) const; |
|
41 void SetUidsToNotifyL(const CCdlUids& aUids); |
|
42 void NotifyChange(TRequestStatus& aStatus, TPckgBuf<SCdlServerChange>& aChange); |
|
43 void CancelNotifyChange() const; |
|
44 void SetCustL(const TDesC8& aCust); |
|
45 CCdlRefs* FileContentsLC(const TDesC& aName) const; |
|
46 CCdlRefs* FindInstancesLC(TUid aCdlUid) const; |
|
47 CCdlNames* FindCustomisationFilesLC() const; |
|
48 CCdlRefs* AllAvailableRefsLC() const; |
|
49 TInt IsPluginInRom(const TDesC& aFileName, TBool& aIsInRom) const; |
|
50 TInt PluginDrive(const TDesC& aFileName, TDriveUnit& aDrive) const; |
|
51 private: |
|
52 CCdlRefs* GetRefsLC(TUid aCdlUid, const TDesC& aName, TBool aByUid) const; |
|
53 HBufC8* GetTempBufLC(TInt aSize) const; |
|
54 }; |
|
55 |
|
56 #endif |