1 /* |
|
2 * Copyright (c) 2010 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 * Wlan login QtHighway Service. |
|
16 */ |
|
17 |
|
18 #ifndef WLANLOGINSERVICE_H |
|
19 #define WLANLOGINSERVICE_H |
|
20 |
|
21 // System includes |
|
22 #include <xqserviceprovider.h> |
|
23 #include <QUrl> |
|
24 // User includes |
|
25 |
|
26 // Forward declarations |
|
27 |
|
28 // External data types |
|
29 |
|
30 // Constants |
|
31 |
|
32 // Class declaration |
|
33 class WlanLoginService: public XQServiceProvider |
|
34 { |
|
35 Q_OBJECT |
|
36 |
|
37 public: |
|
38 // Data types |
|
39 |
|
40 /*! |
|
41 Enumeration for WLAN Login application service request return values |
|
42 */ |
|
43 enum WlanLoginStatus { |
|
44 WlanLoginStatusNone = 0, //!< No status |
|
45 WlanLoginStatusCancel, //!< User cancel |
|
46 WlanLoginStatusNext, //!< Proceed to next phase |
|
47 WlanLoginStatusConnectionDropped, //!< WLAN connection dropped during login |
|
48 WlanLoginStatusFailed //!< Login process failed |
|
49 }; |
|
50 |
|
51 explicit WlanLoginService(QObject *parent = 0); |
|
52 ~WlanLoginService(); |
|
53 |
|
54 signals: |
|
55 |
|
56 void startLogin(int iapId, int netId, QUrl url); |
|
57 void stopLogin(); |
|
58 |
|
59 public slots: |
|
60 |
|
61 void start(int iapId, int netId, QUrl url); |
|
62 void stop(); |
|
63 void completeServiceRequest(int status); |
|
64 |
|
65 private: |
|
66 |
|
67 QVariant mReturnValue; //!< Return value deliverd to back to entry |
|
68 int mAsyncRequestIndex; //!< Service request ID |
|
69 }; |
|
70 |
|
71 #endif //WLANLOGINSERVICE_H |
|