BuildmLearn Toolkit  2.0.4
BuildmLearn Toolkit is an easy-to-use program that helps users make mobile apps without any knowledge of application development.
 All Classes Functions Enumerations Groups Pages
TemplateEntryPoint Class Referenceabstract

The entry point for a template. More...

#include <templateentrypoint.h>

Collaboration diagram for TemplateEntryPoint:
Collaboration graph

Public Member Functions

 TemplateEntryPoint (TemplateFactory *parent)
 
virtual TemplateCorecreateNewCore ()=0
 Creates new instance of template core. More...
 
virtual TemplateCoreloadCoreFromBundleData (const QString &raw_data)=0
 Creates new instance and fills it template-specific data ("load project" functionality). More...
 
virtual QString name () const
 Name of template.
 
virtual QString humanName () const
 Human-readable name of template.
 
virtual QString baseFolder () const
 Base folder of template.
 
virtual QString description () const
 Description of template.
 
virtual QString thumbnailImage () const
 Relative path to thumbnail image. More...
 
QString typeIndentifier () const
 Identifier of the template. More...
 
QString mobileApplicationApkFile () const
 Access to name of template APK file. More...
 

Protected Attributes

QString m_name
 
QString m_humanName
 
QString m_baseFolder
 
QString m_description
 
QString m_thumbnailImage
 
QString m_typeIndentifier
 
QString m_mobileApplicationApkFile
 

Detailed Description

The entry point for a template.

Entry points acts as a thin and light wrapper for template core. It is primarily used to represent the template in "new project" dialog and in some other places throughout the toolkit.

See also
FormNewProject, TemplateCore

Definition at line 47 of file templateentrypoint.h.

Member Function Documentation

virtual TemplateCore* TemplateEntryPoint::createNewCore ( )
pure virtual

Creates new instance of template core.

Returns
Returns pointer to new instance or NULL if no such instance could be created.

Implemented in LearnSpellingsEntryPoint, QuizEntryPoint, BasicmLearningEntryPoint, and FlashCardEntryPoint.

Here is the caller graph for this function:

virtual TemplateCore* TemplateEntryPoint::loadCoreFromBundleData ( const QString &  raw_data)
pure virtual

Creates new instance and fills it template-specific data ("load project" functionality).

Parameters
raw_dataTemplate-specific data.
Returns
Returns pointer to new instance or NULL if no such instance could be created.

Implemented in LearnSpellingsEntryPoint, QuizEntryPoint, BasicmLearningEntryPoint, and FlashCardEntryPoint.

Here is the caller graph for this function:

QString TemplateEntryPoint::mobileApplicationApkFile ( ) const

Access to name of template APK file.

Returns
Returns name of APK template.

Definition at line 67 of file templateentrypoint.cpp.

67  {
68  return m_mobileApplicationApkFile;
69 }
QString TemplateEntryPoint::thumbnailImage ( ) const
virtual

Relative path to thumbnail image.

Remarks
This path is relative to APP_TEMPLATES_PATH macro combined with base folder of template.

Definition at line 59 of file templateentrypoint.cpp.

59  {
60  return m_thumbnailImage;
61 }
QString TemplateEntryPoint::typeIndentifier ( ) const

Identifier of the template.

Identifier is used to determine which template belongs XML bundle file to.

Returns
Returns identifier of the template.

Definition at line 63 of file templateentrypoint.cpp.

63  {
64  return m_typeIndentifier;
65 }

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