Maliit Plugins  0.92.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
Public Types | Public Member Functions | Private Attributes
MaliitKeyboard::Style Class Reference

#include <style.h>

List of all members.

Public Types

enum  Directory { Images, Sounds }

Public Member Functions

 Style (QObject *parent=0)
virtual ~Style ()
void setProfile (const QString &profile)
 Sets the style profile.
QString profile () const
 Returns the active style profile.
QStringList availableProfiles () const
 Returns a list of available profiles.
virtual QString directoryPath (Directory directory) const
 Query the profile-dependent directory path for images, sounds, etc.
StyleAttributesattributes () const
 Query the main style attributes.
StyleAttributesextendedKeysAttributes () const
 Query the extened keys style attributes.
Q_SIGNAL void profileChanged ()

Private Attributes

const QScopedPointer
< StylePrivate > 
d_ptr

Member Enumeration Documentation

Enumerator:
Images 

used to query image directoryPath().

Sounds 

used to query sounds directoryPath().


Constructor & Destructor Documentation

Style::Style ( QObject *  parent = 0)
explicit
Style::~Style ( )
virtual

Member Function Documentation

StyleAttributes * Style::attributes ( ) const

Query the main style attributes.

Returns:
The style attributes used for the main key area. Returns empty attributes in case no valid profile is not set.
QStringList Style::availableProfiles ( ) const

Returns a list of available profiles.

QString Style::directoryPath ( Directory  directory) const
virtual

Query the profile-dependent directory path for images, sounds, etc.

Parameters:
directoryThe directory enum value for which we want to know the directory path.
Returns:
The directory path. Will be empty if for example profile is empty.
StyleAttributes * Style::extendedKeysAttributes ( ) const

Query the extened keys style attributes.

Returns:
The style attributes used for the extended key area. Returns empty attributes in case no valid profile is not set.
QString Style::profile ( ) const

Returns the active style profile.

void Style::profileChanged ( )
void Style::setProfile ( const QString &  profile)

Sets the style profile.

Invalidates previous StyleAttributes instances and creates new ones.

Parameters:
profileThe name of the profile, must be a valid sub directory in data/styles and contain at least a main.ini file.

Member Data Documentation

const QScopedPointer<StylePrivate> MaliitKeyboard::Style::d_ptr
private

The documentation for this class was generated from the following files: