![]() |
Kooky
|
Interface class for importing data. More...
#include <cimportinterface.h>
Inheritance diagram for cImportInterface:
Collaboration diagram for cImportInterface:Public Member Functions | |
| cImportInterface () | |
| virtual QMap< QString, QString > | detailsCapability ()=0 |
| virtual QStringList | search (const QString &szSearch, const QString &szDetails=QString(""))=0 |
| virtual bool | load (qint16 iIndex)=0 |
| bool | loaded () |
| virtual qreal | value (cIngredient::iIngredient i)=0 |
| QString | valueStr (cIngredient::iIngredient i) |
| QString | name (cIngredient::iIngredient i) |
| QString | group (cIngredient::iIngredient i) |
| virtual QString | ingredientName ()=0 |
Public Member Functions inherited from cInterface | |
| virtual qint16 | pluginAPIVersion ()=0 |
| Returns the version of the API. More... | |
| virtual QString | pluginName ()=0 |
| Returns the name of the plugin. More... | |
| virtual qint16 | pluginVersion ()=0 |
| Version of the plugin. More... | |
| virtual iType | pluginType ()=0 |
| Returns the type of the plugin. More... | |
| virtual bool | config ()=0 |
| Calls the configuration dialog (if any). More... | |
Protected Attributes | |
| bool | m_bLoaded |
| qint16 | m_iLoadedIndex |
Additional Inherited Members | |
Public Types inherited from cInterface | |
| enum | iType { iTypeImport = 0, iTypeExport = 1, iTypeDB = 2 } |
| Defines the type of the interface. More... | |
This class implements basic import functionality for Kooky. All functions may be overwritten by derriving classes.
|
inline |
|
pure virtual |
Implemented in cBleibFitPlugin, and cErnaehrungPlugin.
Referenced by cImportInterface().
Here is the caller graph for this function:| QString cImportInterface::group | ( | cIngredient::iIngredient | i | ) |
| i |
References cIngredient::group().
Referenced by loaded(), and cImportIngredientDialog::onIngredientListSelectionChanged().
Here is the call graph for this function:
Here is the caller graph for this function:
|
pure virtual |
Implemented in cBleibFitPlugin, and cErnaehrungPlugin.
Referenced by loaded().
Here is the caller graph for this function:
|
pure virtual |
| iIndex |
Implemented in cBleibFitPlugin, and cErnaehrungPlugin.
Referenced by cImportInterface(), and cImportIngredientDialog::onIngredientListSelectionChanged().
Here is the caller graph for this function:
|
inline |
References group(), ingredientName(), m_bLoaded, name(), value(), and valueStr().
Here is the call graph for this function:| QString cImportInterface::name | ( | cIngredient::iIngredient | i | ) |
| i |
References cIngredient::name().
Referenced by loaded(), and cImportIngredientDialog::onIngredientListSelectionChanged().
Here is the call graph for this function:
Here is the caller graph for this function:
|
pure virtual |
| szSearch | |
| szDetails |
Implemented in cBleibFitPlugin, and cErnaehrungPlugin.
Referenced by cImportInterface(), and cImportIngredientDialog::on_m_lpSearchButton_clicked().
Here is the caller graph for this function:
|
pure virtual |
| i |
Implemented in cBleibFitPlugin, and cErnaehrungPlugin.
Referenced by loaded(), cImportIngredientDialog::onIngredientListSelectionChanged(), and valueStr().
Here is the caller graph for this function:| QString cImportInterface::valueStr | ( | cIngredient::iIngredient | i | ) |
| i |
References cIngredient::iIngredientCalories, cIngredient::iIngredientJoule, and value().
Referenced by loaded(), and cImportIngredientDialog::onIngredientListSelectionChanged().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
TODO: describe
Referenced by loaded().
|
protected |
TODO: describe