|
1 /* |
|
2 * Copyright (c) 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: header file for DCMO Client |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <e32base.h> |
|
19 #include <f32file.h> |
|
20 #include "dcmoconst.h" |
|
21 |
|
22 // needed for creating server thread. |
|
23 |
|
24 class RDCMOClientBase : public RSessionBase |
|
25 { |
|
26 public: |
|
27 |
|
28 /** |
|
29 * Opens RDCMOClientBase |
|
30 * @param None |
|
31 * @return KErrNone Symbian error code |
|
32 */ |
|
33 virtual TInt OpenL() = 0; |
|
34 /** |
|
35 * Closes server connection |
|
36 * @param None |
|
37 * @return None |
|
38 */ |
|
39 virtual void Close() = 0; |
|
40 /** |
|
41 * Get the interger type value |
|
42 * DCMOServer or test app should use this |
|
43 * @param aCategory |
|
44 * @param aId |
|
45 * @param aValue |
|
46 * @return TDCMOStatus |
|
47 */ |
|
48 virtual TDCMOStatus GetDCMOIntAttributeValue(TDes& aCategory, TDCMONode aId, TInt& aValue) = 0; |
|
49 |
|
50 /** |
|
51 * Get the string type value |
|
52 * DCMOServer or test app should use this |
|
53 * @param aCategory |
|
54 * @param aId |
|
55 * @param aStrValue |
|
56 * @return TDCMOStatus |
|
57 */ |
|
58 virtual TDCMOStatus GetDCMOStrAttributeValue(TDes& aCategory, TDCMONode aId, TDes& aStrValue) = 0; |
|
59 |
|
60 /** |
|
61 * Set the interger type value |
|
62 * DCMOServer or test app should use this |
|
63 * @param aCategory |
|
64 * @param aId |
|
65 * @param aValue |
|
66 * @return TDCMOStatus |
|
67 */ |
|
68 virtual TDCMOStatus SetDCMOIntAttributeValue(TDes& aCategory, TDCMONode aId, TInt aValue) = 0; |
|
69 |
|
70 /** |
|
71 * Set the string type value |
|
72 * DCMOServer or test app should use this |
|
73 * @param aCategory |
|
74 * @param aId |
|
75 * @param aStrValue |
|
76 * @return TDCMOStatus |
|
77 */ |
|
78 virtual TDCMOStatus SetDCMOStrAttributeValue(TDes& aCategory, TDCMONode aId, TDes& aStrValue) = 0; |
|
79 |
|
80 /** |
|
81 * Get All type value |
|
82 * DCMOServer or test app should use this |
|
83 * @param aCategory |
|
84 * @param aId |
|
85 * @param aStrValue |
|
86 * @return TDCMOStatus |
|
87 */ |
|
88 virtual void SearchByGroupValue(TDes& aGroup, TDes& aAdapterList) = 0; |
|
89 |
|
90 }; |
|
91 |