|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Indicator information. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SNSRINDICATORINFO_H |
|
19 #define SNSRINDICATORINFO_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <hbindicatorinterface.h> |
|
23 #include <QString> |
|
24 |
|
25 /*! |
|
26 \class SnsrIndicatorInfo |
|
27 \ingroup group_snsrbigclockscreensaverplugin |
|
28 \brief Data structure used within big clock to handle indicator data. |
|
29 */ |
|
30 |
|
31 struct SnsrIndicatorInfo { |
|
32 |
|
33 inline SnsrIndicatorInfo() : |
|
34 type(QString()), |
|
35 iconPath(QString()), |
|
36 category(HbIndicatorInterface::NotificationCategory) {} |
|
37 |
|
38 inline SnsrIndicatorInfo(const QString &type, |
|
39 const QString &iconPath, |
|
40 HbIndicatorInterface::Category category) : |
|
41 type(type), |
|
42 iconPath(iconPath), |
|
43 category(category){} |
|
44 |
|
45 inline SnsrIndicatorInfo(const SnsrIndicatorInfo ©Source) : |
|
46 type(copySource.type), |
|
47 iconPath(copySource.iconPath), |
|
48 category(copySource.category){} |
|
49 |
|
50 inline bool isIconPathEmpty() const { |
|
51 return !iconPath.isEmpty(); |
|
52 } |
|
53 |
|
54 // Indicator type string that is defined by the indicator provider |
|
55 QString type; |
|
56 // Should be fetched by using HbIndicatorInterface::MonoDecorationNameRole |
|
57 QString iconPath; |
|
58 HbIndicatorInterface::Category category; |
|
59 |
|
60 }; |
|
61 |
|
62 #endif // SNSRINDICATORINFO_H |
|
63 |
|
64 // End of File |