williamr@4
|
1 |
/*
|
williamr@4
|
2 |
* Copyright (c) 1997-2004 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
3 |
* All rights reserved.
|
williamr@2
|
4 |
* This component and the accompanying materials are made available
|
williamr@4
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
williamr@2
|
6 |
* which accompanies this distribution, and is available
|
williamr@4
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
williamr@2
|
8 |
*
|
williamr@2
|
9 |
* Initial Contributors:
|
williamr@2
|
10 |
* Nokia Corporation - initial contribution.
|
williamr@2
|
11 |
*
|
williamr@2
|
12 |
* Contributors:
|
williamr@2
|
13 |
*
|
williamr@2
|
14 |
* Description:
|
williamr@2
|
15 |
*
|
williamr@2
|
16 |
*/
|
williamr@2
|
17 |
|
williamr@2
|
18 |
|
williamr@2
|
19 |
#ifndef __AGENTDIALOG_H__
|
williamr@2
|
20 |
#define __AGENTDIALOG_H__
|
williamr@2
|
21 |
|
williamr@2
|
22 |
#include <e32std.h>
|
williamr@2
|
23 |
#include <cdbcols.h>
|
williamr@2
|
24 |
#include <cdblen.h>
|
williamr@4
|
25 |
//#include <comms-infras\commsdebugutility.h> Cannot be included because it conflicts with flogger
|
williamr@2
|
26 |
|
williamr@2
|
27 |
|
williamr@2
|
28 |
/**
|
williamr@2
|
29 |
Server name in EKA2 case
|
williamr@2
|
30 |
@internalTechnology
|
williamr@2
|
31 |
*/
|
williamr@2
|
32 |
_LIT(KCommsDialogServerName, "!NetDialDialogServer");
|
williamr@2
|
33 |
|
williamr@2
|
34 |
//__FLOG_STMT(_LIT8(KDlgSvrLogSubsys, "agentdialog");)
|
williamr@2
|
35 |
//__FLOG_STMT(_LIT8(KDlgSvrLogComponent, "server");)
|
williamr@2
|
36 |
//__FLOG_STMT(_LIT8(KDlgCliLogComponent, "client");)
|
williamr@2
|
37 |
|
williamr@2
|
38 |
class TConnectionPrefs
|
williamr@2
|
39 |
/**
|
williamr@2
|
40 |
Specifies the rank and desired direction of the connection and bearer.
|
williamr@2
|
41 |
|
williamr@2
|
42 |
@internalTechnology
|
williamr@2
|
43 |
*/
|
williamr@2
|
44 |
{
|
williamr@2
|
45 |
public:
|
williamr@2
|
46 |
TUint32 iRank;
|
williamr@2
|
47 |
TCommDbConnectionDirection iDirection;
|
williamr@2
|
48 |
TUint32 iBearerSet;
|
williamr@2
|
49 |
};
|
williamr@2
|
50 |
|
williamr@2
|
51 |
class TIspConnectionNames
|
williamr@2
|
52 |
/**
|
williamr@2
|
53 |
Specifies the Connection Names for ISP.
|
williamr@2
|
54 |
|
williamr@2
|
55 |
@internalTechnology
|
williamr@2
|
56 |
*/
|
williamr@2
|
57 |
{
|
williamr@2
|
58 |
public:
|
williamr@2
|
59 |
TBuf<KCommsDbSvrDefaultTextFieldLength> iServiceName;
|
williamr@2
|
60 |
TBuf<KCommsDbSvrMaxColumnNameLength> iServiceTable;
|
williamr@2
|
61 |
TBuf<KCommsDbSvrDefaultTextFieldLength> iModemName;
|
williamr@2
|
62 |
TBuf<KCommsDbSvrDefaultTextFieldLength> iLocationName;
|
williamr@2
|
63 |
TBuf<KCommsDbSvrDefaultTextFieldLength> iChargecardName;
|
williamr@2
|
64 |
};
|
williamr@2
|
65 |
|
williamr@2
|
66 |
class TAuthenticationPair
|
williamr@2
|
67 |
/**
|
williamr@2
|
68 |
Specifies the Authentication for the User Name and Password.
|
williamr@2
|
69 |
|
williamr@2
|
70 |
@internalTechnology
|
williamr@2
|
71 |
*/
|
williamr@2
|
72 |
{
|
williamr@2
|
73 |
public:
|
williamr@2
|
74 |
TDes* iUsername;
|
williamr@2
|
75 |
TDes* iPassword;
|
williamr@2
|
76 |
};
|
williamr@2
|
77 |
|
williamr@2
|
78 |
class TPctResponse
|
williamr@2
|
79 |
/**
|
williamr@2
|
80 |
Allows the user to see the login script running, see what is sent and received, and allows the user to type responses.
|
williamr@2
|
81 |
|
williamr@2
|
82 |
@internalTechnology
|
williamr@2
|
83 |
*/
|
williamr@2
|
84 |
{
|
williamr@2
|
85 |
public:
|
williamr@2
|
86 |
TDes* iBuffer;
|
williamr@2
|
87 |
};
|
williamr@2
|
88 |
|
williamr@2
|
89 |
class TNewIapConnectionPrefs
|
williamr@2
|
90 |
/**
|
williamr@2
|
91 |
Specifies Connection Preference for the New IAP.
|
williamr@2
|
92 |
|
williamr@2
|
93 |
@internalTechnology
|
williamr@2
|
94 |
*/
|
williamr@2
|
95 |
{
|
williamr@2
|
96 |
public:
|
williamr@2
|
97 |
TConnectionPrefs iPrefs;
|
williamr@2
|
98 |
TInt iLastError;
|
williamr@2
|
99 |
TBuf<KCommsDbSvrDefaultTextFieldLength> iName;
|
williamr@2
|
100 |
};
|
williamr@2
|
101 |
|
williamr@2
|
102 |
class RDialogNotifier : public RNotifier
|
williamr@2
|
103 |
/**
|
williamr@2
|
104 |
Client interface to allow engines or other low level components to communicate with the UI.
|
williamr@2
|
105 |
|
williamr@2
|
106 |
Real implementations need three asynchronous message slots instead of RNotifiers default one slot
|
williamr@2
|
107 |
in order to implement the PCT functionality. This is not used at all by the test dialog server
|
williamr@2
|
108 |
implementation.
|
williamr@2
|
109 |
|
williamr@2
|
110 |
@internalTechnology
|
williamr@2
|
111 |
*/
|
williamr@2
|
112 |
{
|
williamr@2
|
113 |
public :
|
williamr@2
|
114 |
TInt Connect();
|
williamr@2
|
115 |
};
|
williamr@2
|
116 |
|
williamr@2
|
117 |
class RGenConAgentDialogServer : public RSessionBase
|
williamr@2
|
118 |
/**
|
williamr@2
|
119 |
RGenConAgentDialogServer. This components needs to be written as a
|
williamr@2
|
120 |
proper polymorphic DLL in JetStream.
|
williamr@2
|
121 |
|
williamr@2
|
122 |
NOTE! Although the class inherits from RSessionBase this does not mean you
|
williamr@2
|
123 |
have to implement the API as a client server mechanism.
|
williamr@2
|
124 |
|
williamr@2
|
125 |
@internalTechnology
|
williamr@2
|
126 |
*/
|
williamr@2
|
127 |
{
|
williamr@2
|
128 |
public:
|
williamr@2
|
129 |
IMPORT_C RGenConAgentDialogServer();
|
williamr@2
|
130 |
IMPORT_C ~RGenConAgentDialogServer();
|
williamr@2
|
131 |
IMPORT_C TVersion Version() const;
|
williamr@2
|
132 |
IMPORT_C TInt Connect();
|
williamr@2
|
133 |
IMPORT_C void Close();
|
williamr@2
|
134 |
IMPORT_C void ModemAndLocationSelection(TUint32& aModemId,TUint32& aLocationId,TRequestStatus& aStatus);
|
williamr@2
|
135 |
IMPORT_C void IapConnection(TUint32& aIAP, const TConnectionPrefs& aPrefs, TRequestStatus& aStatus);
|
williamr@2
|
136 |
IMPORT_C void IapConnection(TUint32& aIAP, const TConnectionPrefs& aPrefs, TInt aLastError, TRequestStatus& aStatus);
|
williamr@2
|
137 |
IMPORT_C void WarnNewIapConnection(const TConnectionPrefs& aPrefs, TInt aLastError, const TDesC& aNewIapName, TBool& aResponse, TRequestStatus& aStatus);
|
williamr@2
|
138 |
IMPORT_C void Login(TDes& aUsername, TDes& aPassword, TBool aIsReconnect, TRequestStatus& aStatus);
|
williamr@2
|
139 |
IMPORT_C void Authenticate(TDes& aUsername, TDes& aPassword, TBool aIsReconnect, TRequestStatus& aStatus);
|
williamr@2
|
140 |
IMPORT_C void Reconnect(TBool& aResponse, TRequestStatus& aStatus);
|
williamr@2
|
141 |
IMPORT_C TInt OpenPct();
|
williamr@2
|
142 |
IMPORT_C TInt WritePct(const TDesC& aData);
|
williamr@2
|
143 |
IMPORT_C void ReadPct(TDes& aData, TRequestStatus& aStatus);
|
williamr@2
|
144 |
IMPORT_C void DestroyPctNotification(TRequestStatus& aStatus);
|
williamr@2
|
145 |
IMPORT_C void ClosePct();
|
williamr@2
|
146 |
IMPORT_C void QoSWarning(TBool& aResponse, TRequestStatus& aStatus);
|
williamr@2
|
147 |
IMPORT_C void CancelModemAndLocationSelection();
|
williamr@2
|
148 |
IMPORT_C void CancelIapConnection();
|
williamr@2
|
149 |
IMPORT_C void CancelWarnNewIapConnection();
|
williamr@2
|
150 |
IMPORT_C void CancelLogin();
|
williamr@2
|
151 |
IMPORT_C void CancelAuthenticate();
|
williamr@2
|
152 |
IMPORT_C void CancelReconnect();
|
williamr@2
|
153 |
IMPORT_C void CancelReadPct();
|
williamr@2
|
154 |
IMPORT_C void CancelDestroyPctNotification();
|
williamr@2
|
155 |
IMPORT_C void CancelQoSWarning();
|
williamr@2
|
156 |
IMPORT_C void AccessPointConnection(TUint32& aAccessPoint, TInt aAccessPointGroup, TRequestStatus& aStatus);
|
williamr@2
|
157 |
IMPORT_C void CancelAccessPointConnection();
|
williamr@2
|
158 |
IMPORT_C void AccessPointConnection(TUint32& aAP, TUint32 aAPType, TUint32& aBearerAPInd, TUint32 aBearerAPType, TRequestStatus& aStatus);
|
williamr@2
|
159 |
|
williamr@2
|
160 |
private:
|
williamr@2
|
161 |
RDialogNotifier* iNotifier;
|
williamr@2
|
162 |
TPckg<TUint32> iIAP;
|
williamr@2
|
163 |
TPckg<TUint32> iModemId;
|
williamr@2
|
164 |
TPckg<TUint32> iLocationId;
|
williamr@2
|
165 |
TPckgBuf<TIspConnectionNames> iConNames;
|
williamr@2
|
166 |
TPckgBuf<TConnectionPrefs> iPrefs;
|
williamr@2
|
167 |
TPckg<TBool> iBool;
|
williamr@2
|
168 |
TPckgBuf<TUint32> iPctBuffer;
|
williamr@2
|
169 |
TPckgBuf<TPctResponse> iPctResponse;
|
williamr@2
|
170 |
TPckgBuf<TAuthenticationPair> iAuthenticationPair;
|
williamr@2
|
171 |
TPckgBuf<TNewIapConnectionPrefs> iNewIapPrefsBuffer;
|
williamr@2
|
172 |
TPckgBuf<TUint32> iNotUsed; // Parameters not used by plugin
|
williamr@2
|
173 |
TRequestStatus iStatus;
|
williamr@2
|
174 |
TPckg<TUint32> iAccessPoint;
|
williamr@2
|
175 |
// __FLOG_DECLARATION_MEMBER;
|
williamr@2
|
176 |
};
|
williamr@2
|
177 |
|
williamr@2
|
178 |
IMPORT_C TInt StartDialogThread();
|
williamr@2
|
179 |
|
williamr@2
|
180 |
#endif
|