Home · API Reference · Modules

MToolbarData Class Reference
[Maliit server]

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

List of all members.

Public Member Functions

 MToolbarData ()
 ~MToolbarData ()
bool loadToolbarXml (const QString &fileName)
QList< QSharedPointer
< MToolbarItem > > 
items () const
QSharedPointer< const
MToolbarLayout
layout (MInputMethod::Orientation orientation) const
bool isVisible () const

Protected Attributes

MToolbarDataPrivate *const d_ptr


Detailed Description

corresponds to a toolbar defined in a XML file.

Constructor & Destructor Documentation

MToolbarData::MToolbarData (  ) 

Constructor.

MToolbarData::~MToolbarData (  ) 

Destructor.


Member Function Documentation

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). fileName should have absolute path. If no absolute path specified, then it will be looked up in the default path provided by the framework.

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

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::isVisible (  )  const

Return true if toolbar should be visible.


Member Data Documentation

MToolbarDataPrivate* const MToolbarData::d_ptr [protected]


Copyright © 2011 Nokia Corporation
Maliit