equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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 * This is a header file for EsockWrapper class. |
|
16 */ |
|
17 |
|
18 #ifndef ESOCKWRAPPER_H_ |
|
19 #define ESOCKWRAPPER_H_ |
|
20 |
|
21 #include <QObject> |
|
22 |
|
23 QT_BEGIN_HEADER |
|
24 |
|
25 QT_BEGIN_NAMESPACE |
|
26 |
|
27 class EsockWrapperPrivate; |
|
28 |
|
29 /** |
|
30 * Wrapper for connection handling. |
|
31 */ |
|
32 class EsockWrapper: public QObject |
|
33 { |
|
34 Q_OBJECT |
|
35 |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Default constructor |
|
40 */ |
|
41 EsockWrapper(QObject *parent = 0); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 ~EsockWrapper(); |
|
47 |
|
48 public: |
|
49 |
|
50 /** |
|
51 * |
|
52 */ |
|
53 void updateConnection(bool isOpened); |
|
54 |
|
55 public slots: |
|
56 |
|
57 /** |
|
58 * Starts connection creation to given IAP. |
|
59 * |
|
60 * @param[in] iapId IAP ID. |
|
61 */ |
|
62 void connectIap(int iapId); |
|
63 |
|
64 /** |
|
65 * Disconnects connection. |
|
66 */ |
|
67 void disconnectIap(); |
|
68 |
|
69 signals: |
|
70 |
|
71 void connectionStatusFromWrapper(bool isOpened); |
|
72 |
|
73 private: // Data |
|
74 |
|
75 /** Private esock wrapper. */ |
|
76 EsockWrapperPrivate *d_ptr; |
|
77 }; |
|
78 |
|
79 QT_END_HEADER |
|
80 |
|
81 QT_END_NAMESPACE |
|
82 |
|
83 #endif /*ESOCKWRAPPER_H_*/ |
|
84 |
|
85 // End of file |