equal
deleted
inserted
replaced
35 |
35 |
36 class CHbDeviceMessageBoxSymbian : public CBase |
36 class CHbDeviceMessageBoxSymbian : public CBase |
37 { |
37 { |
38 public: |
38 public: |
39 enum TType { |
39 enum TType { |
|
40 ENone, |
40 EInformation, |
41 EInformation, |
41 EQuestion, |
42 EQuestion, |
42 EWarning |
43 EWarning |
43 }; |
44 }; |
44 |
45 |
48 ERejectButton |
49 ERejectButton |
49 }; |
50 }; |
50 |
51 |
51 public: |
52 public: |
52 |
53 |
53 IMPORT_C static CHbDeviceMessageBoxSymbian* NewL(TType aType = EInformation, |
54 IMPORT_C static CHbDeviceMessageBoxSymbian* NewL(TType aType = ENone, |
54 MHbDeviceMessageBoxObserver *aObserver = 0); |
55 MHbDeviceMessageBoxObserver *aObserver = 0); |
55 IMPORT_C ~CHbDeviceMessageBoxSymbian(); |
56 IMPORT_C ~CHbDeviceMessageBoxSymbian(); |
56 |
57 |
57 IMPORT_C static TButtonId QuestionL(const TDesC& aText, |
58 IMPORT_C static TButtonId QuestionL(const TDesC& aText, |
58 const TDesC& aAcceptButtonText, const TDesC& aRejectButtonText); |
59 const TDesC& aAcceptButtonText, const TDesC& aRejectButtonText); |
|
60 IMPORT_C static TButtonId QuestionL(const TDesC& aText, TUint aStandardButtons = 0); |
59 IMPORT_C static void InformationL(const TDesC& aText); |
61 IMPORT_C static void InformationL(const TDesC& aText); |
60 IMPORT_C static void WarningL(const TDesC& aText); |
62 IMPORT_C static void WarningL(const TDesC& aText); |
61 |
63 |
62 IMPORT_C void ShowL(); |
64 IMPORT_C void ShowL(); |
63 IMPORT_C void UpdateL(); |
65 IMPORT_C void UpdateL(); |
89 IMPORT_C const TPtrC ButtonText(TButtonId aButton) const; |
91 IMPORT_C const TPtrC ButtonText(TButtonId aButton) const; |
90 |
92 |
91 IMPORT_C void SetButton(TButtonId aButton, TBool aEnable); |
93 IMPORT_C void SetButton(TButtonId aButton, TBool aEnable); |
92 IMPORT_C TBool HasButton(TButtonId aButton) const; |
94 IMPORT_C TBool HasButton(TButtonId aButton) const; |
93 |
95 |
|
96 IMPORT_C void SetStandardButtons(TUint aButtons); |
|
97 IMPORT_C TUint StandardButtons() const; |
|
98 |
94 IMPORT_C void SetObserver(MHbDeviceMessageBoxObserver *aObserver); |
99 IMPORT_C void SetObserver(MHbDeviceMessageBoxObserver *aObserver); |
95 |
100 |
96 private: |
101 private: |
97 friend class CHbDeviceMessageBoxPrivate; |
102 friend class CHbDeviceMessageBoxPrivate; |
98 CHbDeviceMessageBoxSymbian(); |
103 CHbDeviceMessageBoxSymbian(); |