MDeclarativeCache Class Reference

Cache class for QDeclarativeBooster. More...

#include <mdeclarativecache.h>

List of all members.

Public Member Functions

 MDeclarativeCache ()
 Constructor.
virtual ~MDeclarativeCache ()
 Destructor.

Static Public Member Functions

static void populate ()
 Populate cache with QApplication and QDeclarativeView.
static QApplication * qApplication (int &argc, char **argv)
 Returns QApplication instance from cache or creates a new one.
static QDeclarativeView * qDeclarativeView ()
 Returns QDeclarativeView instance from cache or creates a new one.
static QString applicationDirPath () __attribute__((deprecated))
 Returns the directory that contains the application executable.
static QString applicationFilePath () __attribute__((deprecated))
 Returns the file path of the application executable.

Static Protected Attributes

static
MDeclarativeCachePrivate
*const 
d_ptr


Detailed Description

Cache class for QDeclarativeBooster.

Definition at line 34 of file mdeclarativecache.h.


Constructor & Destructor Documentation

MDeclarativeCache::MDeclarativeCache (  )  [inline]

Constructor.

Definition at line 39 of file mdeclarativecache.h.

virtual MDeclarativeCache::~MDeclarativeCache (  )  [inline, virtual]

Destructor.

Definition at line 42 of file mdeclarativecache.h.


Member Function Documentation

static void MDeclarativeCache::populate (  )  [static]

Populate cache with QApplication and QDeclarativeView.

static QApplication* MDeclarativeCache::qApplication ( int &  argc,
char **  argv 
) [static]

Returns QApplication instance from cache or creates a new one.

Ownership of the returned object is passed to the caller. NOTE: This is subject to change.

static QDeclarativeView* MDeclarativeCache::qDeclarativeView (  )  [static]

Returns QDeclarativeView instance from cache or creates a new one.

Ownership of the returned object is passed to the caller. NOTE: This is subject to change.

static QString MDeclarativeCache::applicationDirPath (  )  [static]

Returns the directory that contains the application executable.

This function is deprecated. It used to be a workaround for QApplication::applicationDirPath() not working on harmattan with qdeclarativebooster and Qt 4.7, but this has been fixed.

static QString MDeclarativeCache::applicationFilePath (  )  [static]

Returns the file path of the application executable.

This function is deprecated. It used to be a workaround for QApplication::applicationFilePath() not working on harmattan with qdeclarativebooster and Qt 4.7, but this has been fixed.


Member Data Documentation

MDeclarativeCachePrivate* const MDeclarativeCache::d_ptr [static, protected]

Definition at line 77 of file mdeclarativecache.h.


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

Generated on Tue Jul 22 11:56:25 2014 for applauncherd by  doxygen 1.5.6