![]() |
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 NOTIFICATIONWIDGETPARAMETERFACTORY_H_ 00021 #define NOTIFICATIONWIDGETPARAMETERFACTORY_H_ 00022 00023 #include "notificationparameter.h" 00024 00028 class NotificationWidgetParameterFactory 00029 { 00030 public: 00034 static QString iconIdKey() { 00035 return QString("iconId"); 00036 } 00037 00041 static QString previewIconIdKey() { 00042 return QString("previewIconId"); 00043 } 00044 00048 static QString summaryKey() { 00049 return QString("summary"); 00050 } 00051 00055 static QString bodyKey() { 00056 return QString("body"); 00057 } 00058 00062 static QString imageIdKey() { 00063 return QString("imageId"); 00064 } 00065 00069 static QString actionKey() { 00070 return QString("action"); 00071 } 00072 00076 static QString userRemovableKey() { 00077 return QString("userRemovable"); 00078 } 00079 00083 static QString genericTextIdKey() { 00084 return QString("genericTextId"); 00085 } 00086 00090 static QString genericTextCatalogueKey() { 00091 return QString("genericTextCatalogue"); 00092 } 00093 00100 static NotificationParameter createIconIdParameter(const QString &iconId) { 00101 return NotificationParameter(iconIdKey(), QVariant(iconId)); 00102 } 00103 00110 static NotificationParameter createPreviewIconIdParameter(const QString &previewIconId) { 00111 return NotificationParameter(previewIconIdKey(), QVariant(previewIconId)); 00112 } 00113 00120 static NotificationParameter createBodyParameter(const QString &body) { 00121 return NotificationParameter(bodyKey(), QVariant(body)); 00122 } 00123 00130 static NotificationParameter createSummaryParameter(const QString &summary) { 00131 return NotificationParameter(summaryKey(), QVariant(summary)); 00132 } 00133 00140 static NotificationParameter createImageIdParameter(const QString &imageId) { 00141 return NotificationParameter(imageIdKey(), QVariant(imageId)); 00142 } 00143 00150 static NotificationParameter createActionParameter(const QString &action) { 00151 return NotificationParameter(actionKey(), QVariant(action)); 00152 } 00153 00160 static NotificationParameter createUserRemovableParameter(bool userRemovable) { 00161 return NotificationParameter(userRemovableKey(), QVariant(userRemovable)); 00162 } 00163 00170 static NotificationParameter createGenericTextIdParameter(const QString &genericTextId) { 00171 return NotificationParameter(genericTextIdKey(), QVariant(genericTextId)); 00172 } 00173 00180 static NotificationParameter createGenericTextCatalogueParameter(const QString &genericTextCatalogue) { 00181 return NotificationParameter(genericTextCatalogueKey(), QVariant(genericTextCatalogue)); 00182 } 00183 }; 00184 00185 #endif /* NOTIFICATIONWIDGETPARAMETERFACTORY_H_ */
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |