Home ยท API Reference
Public Member Functions | Protected Attributes

MToolbarData Class Reference

MToolbarData corresponds to a toolbar defined in a XML file. More...

List of all members.

Public Member Functions

 MToolbarData ()
 Constructor.
 ~MToolbarData ()
 Destructor.
bool loadToolbarXml (const QString &fileName)
 Load a custom toolbar's content from fileName xml file. fileName is the xml file name (with ".xml" postfix). And fileName could have absolute path. If no absolute path specified, then it will be taken from the default path "/usr/share/meegoimframework/imtoolbars/".
QList< QSharedPointer
< MToolbarItem > > 
items () const
 Return all items in this toolbar.
QSharedPointer< const
MToolbarLayout
layout (MInputMethod::Orientation orientation) const
 Returns pointer to layout for given orientation.
bool isVisible () const
 Return true if toolbar should be visible.

Protected Attributes

MToolbarDataPrivate *const d_ptr

Detailed Description

MToolbarData corresponds to a toolbar defined in a XML file.


Constructor & Destructor Documentation

MToolbarData::MToolbarData (  ) 

Constructor.

MToolbarData::~MToolbarData (  ) 

Destructor.


Member Function Documentation

bool MToolbarData::isVisible (  )  const

Return true if toolbar should be visible.

QList< QSharedPointer< MToolbarItem > > MToolbarData::items (  )  const

Return all items in this toolbar.

QSharedPointer< const MToolbarLayout > MToolbarData::layout ( MInputMethod::Orientation  orientation  )  const

Returns pointer to layout for given orientation.

bool MToolbarData::loadToolbarXml ( const QString &  fileName  ) 

Load a custom toolbar's content from fileName xml file. fileName is the xml file name (with ".xml" postfix). And fileName could have absolute path. If no absolute path specified, then it will be taken from the default path "/usr/share/meegoimframework/imtoolbars/".

Parameters:
fileName Name of the xml file which contains the content of a custom toolbar.

Member Data Documentation

MToolbarDataPrivate* const MToolbarData::d_ptr [protected]

Copyright © 2010 Nokia Corporation
MeeGo Touch