~ubuntu-branches/ubuntu/trusty/kwlan/trusty

« back to all changes in this revision

Viewing changes to kwlan/dialup.h~

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2007-08-24 01:02:39 UTC
  • mfrom: (1.1.5 upstream) (0.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20070824010239-e2xmgrrehh3n092w
Tags: 0.6.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __DIALUP__
 
2
#define __DIALUP__
 
3
/** Kwlan
 
4
 *
 
5
 *  This File is part of Kwlan, a network Manager for KDE.
 
6
 *  Kwlan is distributed under LGPL license.
 
7
 *
 
8
 *      @author Thomas Michel <tom.michel@arcor.de>
 
9
 */
 
10
 
 
11
#define PPP_PEERS "/etc/ppp/peers/kwlan"
 
12
 
 
13
#include <qstring.h>
 
14
 
 
15
class QStringList;
 
16
 
 
17
 
 
18
 
 
19
struct dialupData
 
20
{
 
21
    dialupData(): connectionType(ANALOG),
 
22
    noipdefault(TRUE),
 
23
    defaultroute(TRUE),
 
24
    replacedefaultroute(TRUE),
 
25
    noauth(TRUE),
 
26
    persist(TRUE),
 
27
    usepeerdns(TRUE),
 
28
    scriptBeforeDisconnectRoot(FALSE),
 
29
    scriptAfterConnectRoot(FALSE),
 
30
    hidepassword(TRUE),
 
31
    storepassword(FALSE)
 
32
    {}
 
33
    enum type {
 
34
        PPPOE,
 
35
        ISDN,
 
36
        ANALOG
 
37
    };
 
38
    type  connectionType;
 
39
    bool noipdefault;
 
40
    bool defaultroute;
 
41
    bool replacedefaultroute;
 
42
    bool noauth;
 
43
    bool  persist;
 
44
    bool usepeerdns;
 
45
    QString interface;
 
46
    QString initString;
 
47
    QString password;
 
48
    QString user;
 
49
    QString number;
 
50
    QString scriptBeforeDisconnect;
 
51
    QString scriptAfterConnect;
 
52
    bool scriptBeforeDisconnectRoot;
 
53
    bool scriptAfterConnectRoot;
 
54
    bool hidepassword;
 
55
    bool storepassword;
 
56
};
 
57
 
 
58
 
 
59
 
 
60
QStringList listDialupNetworks();
 
61
 
 
62
#endif