![]() |
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 GENERICNOTIFICATIONPARAMETERFACTORY_H 00022 #define GENERICNOTIFICATIONPARAMETERFACTORY_H 00023 00024 #include "notificationparameter.h" 00025 00029 class GenericNotificationParameterFactory 00030 { 00031 public: 00035 static QString eventTypeKey() { 00036 return QString("eventType"); 00037 } 00038 00042 static QString countKey() { 00043 return QString("count"); 00044 } 00045 00049 static QString persistentKey() { 00050 return QString("persistent"); 00051 } 00052 00056 static QString classKey() { 00057 return QString("class"); 00058 } 00059 00063 static QString unseenKey() { 00064 return QString("unseen"); 00065 } 00066 00070 static QString identifierKey() { 00071 return QString("identifier"); 00072 } 00073 00080 static NotificationParameter createEventTypeParameter(const QString &eventType) { 00081 return NotificationParameter(eventTypeKey(), QVariant(eventType)); 00082 } 00083 00090 static NotificationParameter createCountParameter(uint count) { 00091 return NotificationParameter(countKey(), QVariant(count)); 00092 } 00093 00100 static NotificationParameter createPersistentParameter(bool persistent) { 00101 return NotificationParameter(persistentKey(), QVariant(persistent)); 00102 } 00103 00110 static NotificationParameter createClassParameter(const QString ¬ificationClass) { 00111 return NotificationParameter(classKey(), QVariant(notificationClass)); 00112 } 00113 00120 static NotificationParameter createUnseenParameter(bool unseen) { 00121 return NotificationParameter(unseenKey(), QVariant(unseen)); 00122 } 00123 00130 static NotificationParameter createIdentifierParameter(const QString &identifier) { 00131 return NotificationParameter(identifierKey(), QVariant(identifier)); 00132 } 00133 }; 00134 00135 #endif // GENERICNOTIFICATIONPARAMETERFACTORY_H
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |