equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef LOGSPAGEINDICATOR_H |
|
19 #define LOGSPAGEINDICATOR_H |
|
20 |
|
21 #include <hbwidget.h> |
|
22 |
|
23 |
|
24 class LogsPageIndicatorItem; |
|
25 |
|
26 |
|
27 class LogsPageIndicator: public HbWidget |
|
28 { |
|
29 friend class UT_LogsPageIndicator; |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 |
|
34 explicit LogsPageIndicator(QGraphicsItem *parent = 0); |
|
35 ~LogsPageIndicator(); |
|
36 |
|
37 public: |
|
38 |
|
39 void initialize(int itemCount, int activeItemIndex); |
|
40 |
|
41 int itemCount() const; |
|
42 |
|
43 void setActiveItemIndex(int index); |
|
44 int activeItemIndex() const; |
|
45 |
|
46 |
|
47 private: |
|
48 |
|
49 void layoutItems(); |
|
50 |
|
51 private: |
|
52 |
|
53 QList<LogsPageIndicatorItem *> mItems; |
|
54 int mActiveItemIndex; |
|
55 }; |
|
56 |
|
57 #endif //LOGSPAGEINDICATOR |