![]() |
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 00021 #ifndef NOTIFICATIONGROUP_H_ 00022 #define NOTIFICATIONGROUP_H_ 00023 00024 #include "notificationparameters.h" 00025 #include <QVariant> 00026 00027 class QDataStream; 00028 class QDBusArgument; 00029 00035 class NotificationGroup 00036 { 00037 public: 00041 NotificationGroup(); 00042 00050 NotificationGroup(uint groupId, uint userId, const NotificationParameters ¶meters); 00051 00055 ~NotificationGroup(); 00056 00062 uint groupId() const; 00063 00069 uint userId() const; 00070 00076 const NotificationParameters ¶meters() const; 00077 00084 void setParameters(const NotificationParameters ¶meters); 00085 00092 void updateParameters(const NotificationParameters ¶meters); 00093 00094 friend QDataStream &operator<<(QDataStream &, const NotificationGroup &); 00095 friend QDataStream &operator>>(QDataStream &, NotificationGroup &); 00096 00097 friend QDBusArgument &operator<<(QDBusArgument &, const NotificationGroup &); 00098 friend const QDBusArgument &operator>>(const QDBusArgument &, NotificationGroup &); 00099 00100 private: 00102 uint groupId_; 00104 uint userId_; 00106 NotificationParameters parameters_; 00107 }; 00108 00109 Q_DECLARE_METATYPE(NotificationGroup) 00110 00111 00112 00118 QDataStream &operator<<(QDataStream &datastream, const NotificationGroup ¬ificationGroup); 00119 00126 QDataStream &operator>>(QDataStream &datastream, NotificationGroup ¬ificationGroup); 00127 00128 00129 #endif // NOTIFICATIONGROUP_H_
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |