~ubuntu-branches/ubuntu/lucid/knetworkmanager/lucid

« back to all changes in this revision

Viewing changes to knetworkmanager/src/knetworkmanager-connection_setting_vpn_widget.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-09-26 12:40:26 UTC
  • mfrom: (1.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080926124026-t5fr920l4lf2l6hz
Tags: 1:0.7svn864988-0ubuntu1
New upstream snapshot, now works with current NM API, 
closes LP: #259278

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *
3
 
 * knetworkmanager-connection_setting_vpn_widget.cpp - A NetworkManager frontend for KDE
4
 
 *
5
 
 * Copyright (C) 2005, 2006 Novell, Inc.
6
 
 *
7
 
 * Author: Helmut Schaa <hschaa@suse.de>, <helmut.schaa@gmx.de>
8
 
 *
9
 
 * This program is free software; you can redistribute it and/or modify
10
 
 * it under the terms of the GNU General Public License as published by
11
 
 * the Free Software Foundation; either version 2 of the License, or
12
 
 * (at your option) any later version.
13
 
 *
14
 
 * This program is distributed in the hope that it will be useful,
15
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 
 * GNU General Public License for more details.
18
 
 * 
19
 
 * You should have received a copy of the GNU General Public License
20
 
 * along with this program; if not, write to the Free Software
21
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22
 
 *
23
 
 **************************************************************************/
24
 
 
25
 
#ifndef KNETWORKMANAGER_CONNECTION_SETTING_VPN_WIDGET_H
26
 
#define KNETWORKMANAGER_CONNECTION_SETTING_VPN_WIDGET_H
27
 
 
28
 
 
29
 
// qt headers
30
 
#include <qwidget.h>
31
 
#include <qlineedit.h>
32
 
 
33
 
// knm headers
34
 
#include "connection_setting_vpn.h"
35
 
#include "knetworkmanager-connection_setting_widget_interface.h"
36
 
#include "knetworkmanager-device.h"
37
 
 
38
 
class VPNService;
39
 
class VPNConfigWidget;
40
 
 
41
 
namespace ConnectionSettings
42
 
{
43
 
 
44
 
class VPNProperties;
45
 
class Connection;
46
 
 
47
 
class VPNWidgetImpl : public WidgetInterface
48
 
{
49
 
        Q_OBJECT
50
 
        public:
51
 
                VPNWidgetImpl(Connection* conn, bool new_conn, QWidget* parent = NULL, const char* name = NULL, WFlags fl = 0);
52
 
                void Activate();
53
 
                void Deactivate();
54
 
        public slots:
55
 
                void slotServiceComboActivated(int);
56
 
 
57
 
        private:
58
 
                void Init();
59
 
                VPNConfigWidget* getVPNConfigWidget(VPNService* service);
60
 
 
61
 
                bool _new_conn;
62
 
                VPN* _vpnsetting;
63
 
                VPNProperties* _vpnprop;
64
 
                ConnectionSettingVPNWidget* _mainWid;
65
 
                QMap<int, VPNService*> _mapServiceCombo;
66
 
                QMap<VPNService*, VPNConfigWidget*> _mapServiceWidget;
67
 
};
68
 
 
69
 
}
70
 
#endif /* KNETWORKMANAGER_CONNECTION_SETTING_VPN_WIDGET_H*/