~ubuntu-branches/ubuntu/precise/networkmanagement/precise

« back to all changes in this revision

Viewing changes to vpnplugins/strongswan/strongswanauth.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-10-23 14:00:13 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20111023140013-e38hdzybcg6zndrk
Tags: 0.9~svngit.nm09.20111023.ff842e-0ubuntu1
* New upstream snapshot.
* Drop all patches, merged upstream.
* Add kubuntu_add_subdirectory_po.diff to build the translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright 2011 Ilia Kats <ilia-kats@gmx.net>
 
3
 
 
4
This program is free software; you can redistribute it and/or
 
5
modify it under the terms of the GNU General Public License as
 
6
published by the Free Software Foundation; either version 2 of
 
7
the License or (at your option) version 3 or any later version
 
8
accepted by the membership of KDE e.V. (or its successor approved
 
9
by the membership of KDE e.V.), which shall act as a proxy
 
10
defined in Section 14 of version 3 of the license.
 
11
 
 
12
This program is distributed in the hope that it will be useful,
 
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
GNU General Public License for more details.
 
16
 
 
17
You should have received a copy of the GNU General Public License
 
18
along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
*/
 
20
 
 
21
#ifndef STRONGSWANAUTH_H
 
22
#define STRONGSWANAUTH_H
 
23
 
 
24
#include "settingwidget.h"
 
25
 
 
26
#include "settings/vpn.h"
 
27
 
 
28
namespace Knm
 
29
{
 
30
    class Connection;
 
31
} // namespace Knm
 
32
 
 
33
class StrongswanAuthWidgetPrivate;
 
34
 
 
35
class StrongswanAuthWidget : public SettingWidget
 
36
{
 
37
Q_OBJECT
 
38
Q_DECLARE_PRIVATE(StrongswanAuthWidget)
 
39
public:
 
40
    StrongswanAuthWidget(Knm::Connection *, QWidget * parent = 0);
 
41
    ~StrongswanAuthWidget();
 
42
    void readSecrets();
 
43
    void readConfig() {};
 
44
    void writeConfig();
 
45
public Q_SLOTS:
 
46
    void setVisible(bool);
 
47
protected Q_SLOTS:
 
48
    void validate() {}
 
49
 
 
50
private:
 
51
    StrongswanAuthWidgetPrivate * d_ptr;
 
52
    void acceptDialog();
 
53
};
 
54
 
 
55
#endif // STRONGSWANAUTH_H