|
1 /**************************************************************************** |
|
2 ** |
|
3 ** Copyright (C) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
|
4 ** All rights reserved. |
|
5 ** Contact: Nokia Corporation (developer.feedback@nokia.com) |
|
6 ** |
|
7 ** This file is part of the HbWidgets module of the UI Extensions for Mobile. |
|
8 ** |
|
9 ** GNU Lesser General Public License Usage |
|
10 ** This file may be used under the terms of the GNU Lesser General Public |
|
11 ** License version 2.1 as published by the Free Software Foundation and |
|
12 ** appearing in the file LICENSE.LGPL included in the packaging of this file. |
|
13 ** Please review the following information to ensure the GNU Lesser General |
|
14 ** Public License version 2.1 requirements will be met: |
|
15 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
16 ** |
|
17 ** In addition, as a special exception, Nokia gives you certain additional |
|
18 ** rights. These rights are described in the Nokia Qt LGPL Exception |
|
19 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
20 ** |
|
21 ** If you have questions regarding the use of this file, please contact |
|
22 ** Nokia at developer.feedback@nokia.com. |
|
23 ** |
|
24 ****************************************************************************/ |
|
25 |
|
26 #ifndef HBDEVICEPROGRESSDIALOGSYMBIAN_H |
|
27 #define HBDEVICEPROGRESSDIALOGSYMBIAN_H |
|
28 |
|
29 #if defined(__SYMBIAN32__) || defined(SYMBIAN) || defined(HB_DOXYGEN) |
|
30 |
|
31 #include <e32base.h> |
|
32 |
|
33 class CHbDeviceProgressDialogSymbianPrivate; |
|
34 class MHbDeviceProgressDialogObserver; |
|
35 |
|
36 class CHbDeviceProgressDialogSymbian : public CBase |
|
37 { |
|
38 public: |
|
39 |
|
40 enum TType { |
|
41 EProgressDialog, |
|
42 EWaitDialog |
|
43 }; |
|
44 |
|
45 static IMPORT_C CHbDeviceProgressDialogSymbian* NewL(TType aType = EProgressDialog, |
|
46 MHbDeviceProgressDialogObserver* aObserver = 0); |
|
47 IMPORT_C virtual ~CHbDeviceProgressDialogSymbian(); |
|
48 |
|
49 IMPORT_C void ShowL(); |
|
50 IMPORT_C void UpdateL(); |
|
51 IMPORT_C void Cancel(); // deprecated |
|
52 IMPORT_C void Close(); |
|
53 |
|
54 IMPORT_C void SetRange(TInt aMin, TInt aMax); |
|
55 |
|
56 IMPORT_C void SetMaximum(TInt aMax); |
|
57 IMPORT_C TInt Maximum() const; |
|
58 |
|
59 IMPORT_C void SetMinimum(TInt aMin); |
|
60 IMPORT_C TInt Minimum() const; |
|
61 |
|
62 IMPORT_C void SetProgressValue(TInt aProgressValue); |
|
63 IMPORT_C TInt ProgressValue() const; |
|
64 |
|
65 IMPORT_C void SetAutoClose(TBool aAutoClose); |
|
66 IMPORT_C TBool AutoClose() const; |
|
67 |
|
68 IMPORT_C void SetProgressType(TType aType); |
|
69 IMPORT_C TType ProgressType() const; |
|
70 |
|
71 IMPORT_C void SetTextL(const TDesC& aText); |
|
72 IMPORT_C const TPtrC Text() const; |
|
73 |
|
74 IMPORT_C void SetIconNameL(const TDesC& aIconName); |
|
75 IMPORT_C const TPtrC IconName() const; |
|
76 |
|
77 IMPORT_C void SetAnimationDefinitionL(const TDesC& aAnimationDefinition); |
|
78 IMPORT_C TPtrC AnimationDefinition() const; |
|
79 |
|
80 IMPORT_C void SetTextAlignment(TInt aAlign); |
|
81 IMPORT_C TInt TextAlignment() const; |
|
82 |
|
83 IMPORT_C void SetIconAlignment(TInt aAlign); |
|
84 IMPORT_C TInt IconAlignment() const; |
|
85 |
|
86 IMPORT_C void SetTextWrapping(TBool aWrap); // deprecated |
|
87 IMPORT_C TBool TextWrapping() const; // deprecated |
|
88 |
|
89 IMPORT_C void SetButtonTextL(const TDesC& aText); |
|
90 IMPORT_C const TPtrC ButtonText() const; |
|
91 |
|
92 IMPORT_C void SetButton(TBool aEnable); |
|
93 IMPORT_C TBool HasButton() const; |
|
94 |
|
95 IMPORT_C void SetObserver(MHbDeviceProgressDialogObserver* aObserver); |
|
96 private: |
|
97 |
|
98 CHbDeviceProgressDialogSymbian(); |
|
99 void ConstructL(TType aType); |
|
100 CHbDeviceProgressDialogSymbianPrivate* d; |
|
101 friend class CHbDeviceProgressDialogSymbianPrivate; |
|
102 }; |
|
103 |
|
104 class MHbDeviceProgressDialogObserver |
|
105 { |
|
106 public: |
|
107 virtual void ProgressDialogCancelled(const CHbDeviceProgressDialogSymbian* aProgressDialog) = 0; |
|
108 virtual void ProgressDialogClosed(const CHbDeviceProgressDialogSymbian* aProgressDialog) = 0; |
|
109 }; |
|
110 |
|
111 #endif // defined(__SYMBIAN32__) || defined(SYMBIAN) || defined(HB_DOXYGEN) |
|
112 |
|
113 #endif // HBDEVICEPROGRESSDIALOGSYMBIAN_H |