48 }; |
48 }; |
49 |
49 |
50 /** |
50 /** |
51 * Class implements the status control |
51 * Class implements the status control |
52 * |
52 * |
53 * @lib ccapputil.dll |
53 * @lib ccapputil.lib |
54 * @since S60 9.2 |
54 * @since S60 9.2 |
55 */ |
55 */ |
56 NONSHARABLE_CLASS( CCCAppStatusControl ) : |
56 NONSHARABLE_CLASS( CCCAppStatusControl ) : |
57 public CCoeControl, |
57 public CCoeControl, |
58 public MSpbContentProviderObserver |
58 public MSpbContentProviderObserver |
59 { |
59 { |
60 public: // Construction & destruction |
60 public: // Construction & destruction |
61 /** |
61 /** |
62 * Two-phased constructor. |
62 * Two-phased constructor. |
63 */ |
63 */ |
64 IMPORT_C static CCCAppStatusControl* NewL( CSpbContentProvider& aContentProvider, MCCAStatusControlObserver& aObserver ); |
64 IMPORT_C static CCCAppStatusControl* NewL( |
|
65 CSpbContentProvider& aContentProvider, |
|
66 MCCAStatusControlObserver& aObserver ); |
65 |
67 |
66 /** |
68 /** |
67 * Destructor. |
69 * Destructor. |
68 */ |
70 */ |
69 ~CCCAppStatusControl(); |
71 ~CCCAppStatusControl(); |
73 /** |
75 /** |
74 * Sets the link object |
76 * Sets the link object |
75 * |
77 * |
76 * @aLink Link to current contact |
78 * @aLink Link to current contact |
77 */ |
79 */ |
78 IMPORT_C void SetContactLinkL( MVPbkContactLink& aLink ); |
80 IMPORT_C void SetContactLinkL( |
|
81 MVPbkContactLink& aLink ); |
79 |
82 |
80 /** |
83 /** |
81 * Change buttons state between pressed and released. |
84 * Change buttons state between pressed and released. |
82 * |
85 * |
83 * @param aPressed ETrue to make the button pressed |
86 * @param aPressed ETrue to make the button pressed |
84 */ |
87 */ |
85 void SetPressed( TBool aPressed ); |
88 void SetPressed( TBool aPressed ); |
86 |
|
87 /** |
|
88 * Check if button is pressed down |
|
89 * |
|
90 * @return ETrue if button is pressed |
|
91 */ |
|
92 TBool IsPressed(); |
|
93 |
89 |
94 /** |
90 /** |
95 * Set the default status icon |
91 * Set the default status icon |
96 * |
92 * |
97 * @aDefaultStatusIcon Default status icon |
93 * @aDefaultStatusIcon Default status icon |
98 */ |
94 */ |
99 IMPORT_C void SetDefaultStatusIconL( CGulIcon* aDefaultStatusIcon ); |
95 IMPORT_C void SetDefaultStatusIconL( CGulIcon* aDefaultStatusIcon ); |
100 |
96 |
101 /** |
97 /** |
102 * Set the default status text |
98 * Set the default status text |
103 * |
99 * |
104 * @aDefaultStatusText Default status text |
100 * @aDefaultStatusText Default status text |
105 */ |
101 */ |
106 IMPORT_C void SetDefaultStatusTextL( HBufC* aDefaultStatusText ); |
102 IMPORT_C void SetDefaultStatusTextL( HBufC* aDefaultStatusText ); |
107 |
103 |
108 public: // From CCoeControl |
104 public: // From CCoeControl |
109 |
105 |
110 /** |
106 /** |
111 * From CCoeControl |
107 * From CCoeControl |