equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2009-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 * Wrapper for Symbian Esock library. |
|
16 */ |
|
17 |
|
18 #ifndef WLANQTUTILSESOCKWRAPPER_H |
|
19 #define WLANQTUTILSESOCKWRAPPER_H |
|
20 |
|
21 // System includes |
|
22 |
|
23 #include <QObject> |
|
24 #include <QScopedPointer> |
|
25 |
|
26 // User includes |
|
27 |
|
28 // Forward declarations |
|
29 |
|
30 class WlanQtUtilsEsockWrapperPrivate; |
|
31 |
|
32 // External data types |
|
33 |
|
34 // Constants |
|
35 |
|
36 // Class declaration |
|
37 |
|
38 class WlanQtUtilsEsockWrapper: public QObject |
|
39 { |
|
40 Q_OBJECT |
|
41 |
|
42 public: |
|
43 |
|
44 // Data types |
|
45 |
|
46 WlanQtUtilsEsockWrapper(QObject *parent = 0); |
|
47 |
|
48 ~WlanQtUtilsEsockWrapper(); |
|
49 |
|
50 void updateConnection(bool isOpened, int platformStatusCode); |
|
51 |
|
52 int lastStatusCode(); |
|
53 |
|
54 signals: |
|
55 |
|
56 void connectionStatusFromWrapper(bool isOpened); |
|
57 |
|
58 public slots: |
|
59 |
|
60 void connectIap(int iapId); |
|
61 |
|
62 void disconnectIap(); |
|
63 |
|
64 protected: |
|
65 |
|
66 protected slots: |
|
67 |
|
68 private: |
|
69 |
|
70 private slots: |
|
71 |
|
72 private: // data |
|
73 |
|
74 //! Private implementation |
|
75 QScopedPointer<WlanQtUtilsEsockWrapperPrivate> d_ptr; |
|
76 |
|
77 //! Platform status code of latest connection creation attempt |
|
78 int mLastStatusCode; |
|
79 |
|
80 // Friend classes |
|
81 }; |
|
82 |
|
83 #endif // WLANQTUTILSESOCKWRAPPER_H |
|