summaryrefslogtreecommitdiffstats
path: root/knetworkmanager-0.9/src/knetworkmanager-connection_setting.h
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-08-30 12:57:49 -0500
committerTimothy Pearson <[email protected]>2012-08-30 12:57:49 -0500
commit1d86a2adb82a0c0c1b98e5196a3e6bbda0e46287 (patch)
tree51bb543c0b9195690652ec15f95d9a8227891cc0 /knetworkmanager-0.9/src/knetworkmanager-connection_setting.h
parentbf231a0d0362758f167da389222e271acb2ebd90 (diff)
downloadtdenetworkmanager-1d86a2adb82a0c0c1b98e5196a3e6bbda0e46287.tar.gz
tdenetworkmanager-1d86a2adb82a0c0c1b98e5196a3e6bbda0e46287.zip
Move directory to new location
Diffstat (limited to 'knetworkmanager-0.9/src/knetworkmanager-connection_setting.h')
-rw-r--r--knetworkmanager-0.9/src/knetworkmanager-connection_setting.h94
1 files changed, 0 insertions, 94 deletions
diff --git a/knetworkmanager-0.9/src/knetworkmanager-connection_setting.h b/knetworkmanager-0.9/src/knetworkmanager-connection_setting.h
deleted file mode 100644
index f189117..0000000
--- a/knetworkmanager-0.9/src/knetworkmanager-connection_setting.h
+++ /dev/null
@@ -1,94 +0,0 @@
-/***************************************************************************
- *
- * knetworkmanager-connection_setting.h - A NetworkManager frontend for KDE
- *
- * Copyright (C) 2005, 2006 Novell, Inc.
- *
- * Author: Helmut Schaa <[email protected]>, <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- **************************************************************************/
-
-#ifndef KNETWORKMANAGER_CONNECTION_SETTING_H
-#define KNETWORKMANAGER_CONNECTION_SETTING_H
-
-#include <tqmap.h>
-#include <tqobject.h>
-#include <tqdbusdata.h>
-
-namespace ConnectionSettings
-{
-
-/*
- Annotation: hopefully we can convert these to
- TQMap<TQString, TQVariant> when switching to TQt4
-*/
-typedef TQMap<TQString, TQT_DBusData> SettingsMap;
-
-class Connection;
-
-// the base class for all settings
-class ConnectionSetting : public TQObject
-{
- Q_OBJECT
-
- public:
- ConnectionSetting(Connection* conn, TQString type, const char* name = 0, bool enabled = true);
- ConnectionSetting(const ConnectionSetting&);
-
- // serialize the setting to a map
- virtual SettingsMap toMap() const = 0;
-
- // serialize the secrets to a map
- virtual SettingsMap toSecretsMap(bool withSettings = true) const;
-
- // initialize setting from a settingsmap
- virtual void fromMap(const SettingsMap&) = 0;
-
- // set secrtes from a secretsmap
- virtual bool fromSecretsMap(const SettingsMap&);
-
- // return whether this setting should be used or not
- virtual bool getEnabled(void) const;
-
- // return whether this setting is valid or not
- virtual bool isValid() const = 0;
-
- // return the settings type
- TQString getType(void) const;
-
- // return the connection this setting belongs to
- Connection* getConnection(void) const;
-
- // return whether the setting has secrets or not
- virtual bool hasSecrets(void) const;
-
- signals:
- void validityChanged();
-
- protected:
- void emitValidityChanged();
-
- // parent-connection
- Connection* _conn;
-
- private:
- TQString _type;
- bool _enabled;
-};
-
-}
-#endif /* KNETWORKMANAGER_CONNECTION_SETTING_H */