A class that represents in-process notification banner.
More...
Inherits MSceneWindow.
List of all members.
Detailed Description
A class that represents in-process notification banner.
Overview
- Use MInfoBanner class to launch in-process notifications.
- Use MNotification class to launch out-of-process system level notifications.
Variants
Examples
Here's how to launch an event banner from code:
Here's how to launch an information banner from code:
Here's how to launch an interactive information banner from code:
- See also:
- MNotification
- Deprecated:
- MInfoBanner is deprecated, use MBanner for any component with banner requirements
Member Enumeration Documentation
Defines the type of the banner. Event is used for messages & events. Information for i.e. system notifications ("Battery low")
- Enumerator:
-
Constructor & Destructor Documentation
MInfoBanner::MInfoBanner |
( |
BannerType |
type = Information |
) |
|
Constructs a new banner object of given type.
- Parameters:
-
MInfoBanner::~MInfoBanner |
( |
|
) |
[virtual] |
Destructor for banner object
Member Function Documentation
Returns the type of the banner.
- Returns:
- the type of the banner
QString MInfoBanner::bodyText |
( |
|
) |
const |
Returns the body text of the banner.
void MInfoBanner::buttonClicked |
( |
|
) |
[signal] |
This signal is emitted when the button in banner is clicked.
QString MInfoBanner::buttonText |
( |
|
) |
const |
Returns the text of the information banner button.
void MInfoBanner::click |
( |
|
) |
|
void MInfoBanner::clicked |
( |
|
) |
[signal] |
This signal is emitted when the banner is activated.
QString MInfoBanner::iconID |
( |
|
) |
const |
Returns the icon ID of the banner.
QString MInfoBanner::imageID |
( |
|
) |
const |
Returns the image ID of the banner.
QPixmap MInfoBanner::pixmap |
( |
|
) |
const |
Returns the user defined pixmap.
void MInfoBanner::setBodyText |
( |
const QString & |
bodyText |
) |
|
Sets the body text for the banner.
- Parameters:
-
| body | Body text for the banner |
void MInfoBanner::setButtonText |
( |
const QString & |
text |
) |
|
Sets the text for the information banner button.
- Parameters:
-
void MInfoBanner::setIconID |
( |
const QString & |
iconID |
) |
|
Sets the icon for the banner.
- Parameters:
-
| iconId | Icon ID for the banner (for event banners) |
void MInfoBanner::setImageID |
( |
const QString & |
imageID |
) |
|
Sets the image for the banner.
- Parameters:
-
| image | Image ID for the banner |
void MInfoBanner::setPixmap |
( |
const QPixmap & |
pixmap |
) |
|
Sets the pixmap for the banner.
- Parameters:
-
| user | defined pixmap for the banner |
Member Data Documentation
View type for information type banner.
View type for event type banner.
Property Documentation
MInfoBanner::bodyText [read, write] |
MInfoBanner::buttonText [read, write] |
Button text for interactive information banner.
MInfoBanner::iconID [read, write] |
MInfoBanner::imageID [read, write] |