-rw-r--r-- | library/networkinterface.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/library/networkinterface.h b/library/networkinterface.h new file mode 100644 index 0000000..d2ca5ab --- a/dev/null +++ b/library/networkinterface.h | |||
@@ -0,0 +1,54 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | #ifndef NETWORKINTERFACE_H | ||
21 | #define NETWORKINTERFACE_H | ||
22 | |||
23 | #include <qnamespace.h> | ||
24 | #include <qstring.h> | ||
25 | #include <qpe/qcom.h> | ||
26 | |||
27 | #ifndef QT_NO_COMPONENT | ||
28 | // {09794290-69d5-4c42-8a53-230cf2e53c50} | ||
29 | # ifndef IID_Network | ||
30 | # define IID_Network QUuid( 0x09794290, 0x69d5, 0x4c42, 0x8a, 0x53, 0x23, 0x0c, 0xf2, 0xe5, 0x3c, 0x50) | ||
31 | # endif | ||
32 | #endif | ||
33 | |||
34 | class QWidget; | ||
35 | class Config; | ||
36 | |||
37 | struct NetworkInterface : public QUnknownInterface | ||
38 | { | ||
39 | virtual bool doProperties( QWidget *parent, Config& ) = 0; | ||
40 | virtual bool create( Config& ) = 0; | ||
41 | virtual bool remove( Config& ) = 0; | ||
42 | virtual QString device( Config& ) const; | ||
43 | virtual QString cardType( Config& ) const; | ||
44 | virtual bool isActive( Config& ) const; | ||
45 | virtual bool isAvailable( Config& ) const; | ||
46 | virtual bool start( Config& ) = 0; | ||
47 | virtual bool start( Config&, const QString& password ); | ||
48 | virtual bool stop( Config& ) = 0; | ||
49 | virtual bool needPassword( Config& ) const; | ||
50 | virtual QWidget* addStateWidget( QWidget* parent, Config& ) const; | ||
51 | }; | ||
52 | |||
53 | #endif | ||
54 | |||