|
1 /* |
|
2 * Copyright (c) 2002-2005 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 declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef R_SEN_SERVICE_MANAGER_CLIENT_H |
|
26 #define R_SEN_SERVICE_MANAGER_CLIENT_H |
|
27 |
|
28 // INCLUDES |
|
29 #include <e32base.h> |
|
30 #include <flogger.h> |
|
31 |
|
32 #include "SenServiceManager.h" // typedef for RServiceDescriptionArray; |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 class CSenXmlServiceDescription; |
|
36 class CSenChunk; |
|
37 |
|
38 // CLASS DECLARATION |
|
39 class RSenServiceManager : public RSessionBase |
|
40 { |
|
41 public: // New functions |
|
42 |
|
43 RSenServiceManager();//RFileLogger* aLog); |
|
44 TInt Connect(); |
|
45 TVersion Version() const; |
|
46 TInt InstallFramework(TDesC8& aMessage); |
|
47 TInt AssociateService(TDesC8& aServiceID, TDesC8& aProviderID); |
|
48 TInt DissociateService(TDesC8& aServiceID, TDesC8& aProviderID); |
|
49 TInt RegisterIdentityProvider(TDesC8& aMessage); |
|
50 TInt UnregisterIdentityProvider(TDesC8& aMessage); |
|
51 |
|
52 /** |
|
53 * Method returns list of matching servicedescriptions, as XML |
|
54 * and delimetted by TAB char. |
|
55 * @param aUri is the URI used as "search mask" |
|
56 * @param aDescriptions if successful, this will be a |
|
57 * descriptor pointing to RChunk allocated memory, |
|
58 * which contains list of returned service descriptions. |
|
59 * SM implementation should copy this data and then |
|
60 * close the related RChunk. |
|
61 * @param aHandle contains handle to newly allocated RChunk |
|
62 * if method was succesful. |
|
63 * @return KErrNone or some system-wide error code otherwise |
|
64 */ |
|
65 TInt ServiceDescriptionsByUriL(CSenChunk& aSenChunk); |
|
66 |
|
67 /** |
|
68 * Method returns list of matching servicedescriptions, as XML |
|
69 * and delimetted by TAB char. |
|
70 * @param aPatternAsXml is the XML representation of the |
|
71 * service description, which is used as "search |
|
72 * mask". |
|
73 * @param aDescriptions if successful, this will be a |
|
74 * descriptor pointing to RChunk allocated memory, |
|
75 * which contains list of returned service descriptions. |
|
76 * SM implementation should copy this data and then |
|
77 * close the related RChunk. |
|
78 * @param aHandle contains handle to newly allocated RChunk |
|
79 * if method was succesful. |
|
80 * @return KErrNone or some system-wide error code otherwise |
|
81 */ |
|
82 TInt ServiceDescriptionsByPatternL(CSenChunk& aSenChunk); |
|
83 |
|
84 TInt UnregisterServiceDescription(TDesC8& aMessage); |
|
85 TInt RegisterServiceDescription(TDesC8& aMessage); |
|
86 |
|
87 TInt CredentialsL(CSenChunk& aSenChunk); |
|
88 |
|
89 TInt AddCredentialL(CSenChunk& aSenChunk); |
|
90 |
|
91 TInt RemoveCredentialsL(CSenChunk& aSenChunk); |
|
92 |
|
93 TInt IdentityProvidersL(CSenChunk& aSenChunk); |
|
94 TInt ConnectionID(); |
|
95 |
|
96 //void SetLog(RFileLogger* aLog); |
|
97 //RFileLogger* Log() const; |
|
98 void SetChannel(TInt aChannel); |
|
99 |
|
100 private: // Data |
|
101 //RFileLogger* iLog; |
|
102 TInt iTLSLogChannel; |
|
103 }; |
|
104 |
|
105 #endif //R_SEN_SERVICE_MANAGER_CLIENT_H |
|
106 |
|
107 // End of File |
|
108 |