Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Copyright (C) 2012 Puneet Goyal <[email protected]>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License version 2 as published by the Free Software Foundation;
- *
- * This library 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
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
- #ifndef MANAGED_OBJECT_MAP_H
- #define MANAGED_OBJECT_MAP_H
- #include <QtDBus>
- class ManagedObjectMap
- {
- public:
- ManagedObjectMap();
- ManagedObjectMap(const QMap<QString, QMap<QString, QMap<QString, QVariant> > > &managedObjectMap);
- ManagedObjectMap(const ManagedObjectMap &other);
- ManagedObjectMap& operator=(const ManagedObjectMap &other);
- ~ManagedObjectMap();
- friend QDebug &operator<<(QDebug dbg, const ManagedObjectMap &managedObjectMap);
- friend QDBusArgument &operator<<(QDBusArgument &argument, const ManagedObjectMap &managedObjectMap);
- friend const QDBusArgument &operator>>(const QDBusArgument &argument, ManagedObjectMap &managedObjectMap);
- friend QDBusArgument &operator<<(QDBusArgument &argument, QMap<QString, QMap<QString, QVariant> > &managedInterfaceMap);
- friend const QDBusArgument &operator>>(const QDBusArgument &argument, QMap<QString, QMap<QString, QVariant> > &managedInterfaceMap);
- QMap<QString, QMap <QString, QMap<QString, QVariant> > > getMap() const;
- //register ManagedObjectMap with the Qt type system
- static void registerMetaType();
- private:
- QMap<QString, QMap <QString, QMap<QString, QVariant> > > m_map;
- };
- Q_DECLARE_METATYPE(ManagedObjectMap)
- #endif // MANAGED_OBJECT_MAP_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement