|
1 /* |
|
2 * Copyright (c) 2002 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: Interface for access services |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MCAIMPSACCESSCLIENT_H |
|
21 #define MCAIMPSACCESSCLIENT_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "MCAImpsClient.h" |
|
25 #include <ImpsAccessCli.h> |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * Interface for access services. |
|
31 * Same interface as RImpsAccessClient |
|
32 * Comments are copied from RImpsAccessClient |
|
33 * |
|
34 * @lib CAAdapter.dll |
|
35 * @since 1.2 |
|
36 */ |
|
37 class MCAImpsAccessClient : public MCAImpsClient |
|
38 { |
|
39 public: // New functions |
|
40 |
|
41 // INITILIZATION AND CONNECT |
|
42 |
|
43 /** |
|
44 * Registers the listener object for Access events. |
|
45 * @since 1.2 |
|
46 * @param aObserver The observer. |
|
47 * @param aPriority Observer priority. Refer to CActive priority. |
|
48 */ |
|
49 virtual void RegisterL( |
|
50 MImpsAccessHandler2* aObserver, |
|
51 TInt aPriority = 0 ) = 0; |
|
52 |
|
53 /** |
|
54 * Unregisters the listener object and disconnects from the server. |
|
55 * @since 1.2 |
|
56 */ |
|
57 virtual void Unregister() = 0; |
|
58 |
|
59 /** |
|
60 * @see RImpsAccessClient2 |
|
61 */ |
|
62 virtual TInt NumberOfSessionsL( TImpsCspIdentifier& aCspId ) = 0; |
|
63 |
|
64 // ACCESS SERVICES |
|
65 |
|
66 /** |
|
67 * @see RImpsAccessClient2 |
|
68 */ |
|
69 virtual TInt LoginL( TImpsCspIdentifier aCspId, |
|
70 const TDesC& aPsw, |
|
71 const TDesC& aClientId, |
|
72 TUint32 aAP, |
|
73 const TDesC* aKey1 = NULL, |
|
74 const TDesC* aKey2 = NULL ) = 0; |
|
75 |
|
76 /** |
|
77 * @see RImpsAccessClient2 |
|
78 */ |
|
79 virtual TInt LogoutL() = 0; |
|
80 |
|
81 protected: // New functions |
|
82 |
|
83 /** |
|
84 * Destructor. |
|
85 */ |
|
86 virtual ~MCAImpsAccessClient() { }; |
|
87 }; |
|
88 |
|
89 #endif // MCAIMPSACCESSCLIENT_H |
|
90 |
|
91 // End of File |