~ubuntu-branches/ubuntu/trusty/knetworkmanager/trusty

« back to all changes in this revision

Viewing changes to knetworkmanager-0.7/src/knetworkmanager-vpnservice.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-vpnservice.h - A NetworkManager frontend for KDE 
 
4
 *
 
5
 * Copyright (C) 2006 Novell, Inc.
 
6
 *
 
7
 * Author: Timo Hoenig <thoenig@suse.de>, <thoenig@nouse.net>
 
8
 *         Helmut Schaa <hschaa@suse.de>
 
9
 *
 
10
 * This program is free software; you can redistribute it and/or modify
 
11
 * it under the terms of the GNU General Public License as published by
 
12
 * the Free Software Foundation; either version 2 of the License, or
 
13
 * (at your option) any later version.
 
14
 *
 
15
 * This program is distributed in the hope that it will be useful,
 
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18
 * GNU General Public License for more details.
 
19
 * 
 
20
 * You should have received a copy of the GNU General Public License
 
21
 * along with this program; if not, write to the Free Software
 
22
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
23
 *
 
24
 **************************************************************************/
 
25
 
 
26
#ifndef KNETWORKMANAGER_VPN_SERVICE_H
 
27
#define KNETWORKMANAGER_VPN_SERVICE_H
 
28
 
 
29
#include <NetworkManager/NetworkManager.h>
 
30
#include <NetworkManager/NetworkManagerVPN.h>
 
31
 
 
32
#include <qobject.h>
 
33
#include <qguardedptr.h>
 
34
 
 
35
#include "knetworkmanager.h"
 
36
#include "knetworkmanager-vpnplugin.h"
 
37
 
 
38
class KNetworkManager;
 
39
class VPNService;
 
40
class KConfigGroup;
 
41
 
 
42
class VPNService : public QObject
 
43
{
 
44
        Q_OBJECT
 
45
 
 
46
        public:
 
47
          VPNService(const QString& serviceName, const QString& service, QObject* parent, const char* name = 0);
 
48
          ~VPNService();
 
49
 
 
50
          QString getDisplayName() const;
 
51
          QString getName() const;
 
52
          QString getService() const;
 
53
          VPNPlugin* getVPNPlugin();
 
54
          QString getIcon();
 
55
 
 
56
        private:
 
57
          QString _name;
 
58
          QString _service;
 
59
          QGuardedPtr<VPNPlugin> _vpnPlugin;
 
60
};
 
61
 
 
62
#endif /* KNETWORKMANAGER_VPN_SERVICE_H */