![]() |
Home · All Namespaces · All Classes |
00001 /**************************************************************************** 00002 ** 00003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00004 ** All rights reserved. 00005 ** Contact: Nokia Corporation (directui@nokia.com) 00006 ** 00007 ** This file is part of systemui. 00008 ** 00009 ** If you have questions regarding the use of this file, please contact 00010 ** Nokia at directui@nokia.com. 00011 ** 00012 ** This library is free software; you can redistribute it and/or 00013 ** modify it under the terms of the GNU Lesser General Public 00014 ** License version 2.1 as published by the Free Software Foundation 00015 ** and appearing in the file LICENSE.LGPL included in the packaging 00016 ** of this file. 00017 ** 00018 ****************************************************************************/ 00019 00020 #ifndef NOTIFICATIONPARAMETERS_H 00021 #define NOTIFICATIONPARAMETERS_H 00022 00023 #include <QHash> 00024 #include <QVariant> 00025 00026 class QDataStream; 00027 class QDBusArgument; 00028 class NotificationParameter; 00029 00034 class NotificationParameters 00035 { 00036 public: 00040 NotificationParameters(); 00041 00045 virtual ~NotificationParameters(); 00046 00053 void add(const QString ¶meter, const QVariant &value); 00054 00060 void add(const NotificationParameter ¶meter); 00061 00068 void update(const NotificationParameters ¶meters); 00069 00076 QVariant value(const QString ¶meter) const; 00077 00083 int count() const; 00084 00085 friend QDataStream &operator<<(QDataStream &, const NotificationParameters &); 00086 friend QDataStream &operator>>(QDataStream &, NotificationParameters &); 00087 00088 friend QDBusArgument &operator<<(QDBusArgument &, const NotificationParameters &); 00089 friend const QDBusArgument &operator>>(const QDBusArgument &, NotificationParameters &); 00090 00091 private: 00093 QHash<QString, QVariant> parameterValues; 00094 }; 00095 00102 QDataStream &operator<<(QDataStream &datastream, const NotificationParameters ¶meters); 00103 00110 QDataStream &operator>>(QDataStream &datastream, NotificationParameters ¶meters); 00111 00112 Q_DECLARE_METATYPE(NotificationParameters) 00113 00114 #endif
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |