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
FlashCardEntryPoint Class Reference
Collaboration diagram for FlashCardEntryPoint:
Collaboration graph

Public Member Functions

 FlashCardEntryPoint (TemplateFactory *parent)
 
TemplateCorecreateNewCore ()
 Creates new instance of template core. More...
 
TemplateCoreloadCoreFromBundleData (const QString &raw_data)
 Creates new instance and fills it template-specific data ("load project" functionality). More...
 
- Public Member Functions inherited from TemplateEntryPoint
 TemplateEntryPoint (TemplateFactory *parent)
 
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...
 

Additional Inherited Members

- Protected Attributes inherited from TemplateEntryPoint
QString m_name
 
QString m_humanName
 
QString m_baseFolder
 
QString m_description
 
QString m_thumbnailImage
 
QString m_typeIndentifier
 
QString m_mobileApplicationApkFile
 

Detailed Description

Definition at line 37 of file flashcardentrypoint.h.

Member Function Documentation

TemplateCore * FlashCardEntryPoint::createNewCore ( )
virtual

Creates new instance of template core.

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

Implements TemplateEntryPoint.

Definition at line 53 of file flashcardentrypoint.cpp.

53  {
54  return new FlashCardCore(this, this);
55 }
TemplateCore * FlashCardEntryPoint::loadCoreFromBundleData ( const QString &  raw_data)
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.

Implements TemplateEntryPoint.

Definition at line 57 of file flashcardentrypoint.cpp.

57  {
58  FlashCardCore *core = new FlashCardCore(this, this);
59  if (core->editor()->loadBundleData(raw_data)) {
60  return core;
61  }
62  else {
63  core->simulator()->deleteLater();
64  core->editor()->deleteLater();
65  core->deleteLater();
66  return NULL;
67  }
68 }
virtual TemplateEditor * editor() const
Access to editor widget of the template.
Definition: templatecore.h:84
virtual TemplateSimulator * simulator() const
Access to simulator widget of the template.
Definition: templatecore.h:90
virtual bool loadBundleData(const QString &bundle_data)=0
Loads editor state from XML bundle.

Here is the call graph for this function:


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