Home · All Namespaces · All Classes
Public Member Functions | Public Attributes

Launcher::Placement Class Reference

A class for storing, parsing and ordering the placement information of the items. More...

#include <launcher.h>

Collaboration diagram for Launcher::Placement:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Placement ()
 Placement (const QString &placement)
 Placement (int page, int position)
void setPlacement (const QString &placementString)
QString toString ()
bool isNull ()

Public Attributes

QString location
int page
int position

Detailed Description

A class for storing, parsing and ordering the placement information of the items.

Definition at line 61 of file launcher.h.


Constructor & Destructor Documentation

Launcher::Placement::Placement (  ) 

Definition at line 409 of file launcher.cpp.

                             : page(-1), position(-1) {
}

Launcher::Placement::Placement ( const QString &  placement  ) 

Definition at line 412 of file launcher.cpp.

                                                           : page(-1), position(-1) {
    setPlacement(placementString);
}

Here is the call graph for this function:

Launcher::Placement::Placement ( int  page,
int  position 
)

Definition at line 416 of file launcher.cpp.

        : location(LOCATION_IDENTIFIER), page(page), position(position) {
}


Member Function Documentation

bool Launcher::Placement::isNull (  )  [inline]

Definition at line 74 of file launcher.h.

                      {
            return (page < 0 || position < 0);
        }

void Launcher::Placement::setPlacement ( const QString &  placementString  ) 

Definition at line 420 of file launcher.cpp.

{
    location = placementString.section(SECTION_SEPARATOR, 0, 0);
    if (location == LOCATION_IDENTIFIER) {
        page = placementString.section(SECTION_SEPARATOR, 1, 1).toInt();
        position = placementString.section(SECTION_SEPARATOR, 2, 2).toInt();
    }
}

QString Launcher::Placement::toString (  ) 

Definition at line 429 of file launcher.cpp.

{
    return PLACEMENT_TEMPLATE.arg(page).arg(position);
}


Member Data Documentation

Definition at line 70 of file launcher.h.

Definition at line 71 of file launcher.h.

Definition at line 72 of file launcher.h.


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

Copyright © 2010 Nokia Corporation Generated on Thu Nov 4 2010 18:20:42
Doxygen 1.7.1
MeeGo Touch