SolidModules
activeconnection.h
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 Copyright 2008 Will Stephenson <wstephenson@kde.org> 00003 00004 This program is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU General Public License as 00006 published by the Free Software Foundation; either version 2 of 00007 the License or (at your option) version 3 or any later version 00008 accepted by the membership of KDE e.V. (or its successor approved 00009 by the membership of KDE e.V.), which shall act as a proxy 00010 defined in Section 14 of version 3 of the license. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program. If not, see <http://www.gnu.org/licenses/>. 00019 */ 00020 00021 #ifndef ACTIVECONNECTION_H 00022 #define ACTIVECONNECTION_H 00023 00024 #include <QtCore/QList> 00025 #include <QtCore/QString> 00026 #include <QtDBus/QDBusArgument> 00027 00028 struct ActiveConnection 00029 { 00030 QString serviceName; 00031 QDBusObjectPath connectionPath; 00032 QDBusObjectPath specificObject; 00033 QList<QDBusObjectPath> activeDeviceList; 00034 }; 00035 00036 typedef QList<ActiveConnection> ActiveConnectionList; 00037 00038 Q_DECLARE_METATYPE(ActiveConnection) 00039 Q_DECLARE_METATYPE(ActiveConnectionList) 00040 00041 const QDBusArgument &operator>>(const QDBusArgument &argument, ActiveConnection& ); 00042 QDBusArgument &operator<<(QDBusArgument &argument, const ActiveConnection& ); 00043 00044 #endif // ACTIVECONNECTION_H