Ananas Library 0.9.5
|
#include <aobjectlist.h>
Public Slots | |
virtual aObject * | currentObject () const |
virtual QString | Uid () |
virtual bool | IsSelected () |
virtual bool | IsMarkDeleted () |
virtual bool | IsMarked () |
virtual int | SetMarkDeleted (bool Deleted) |
virtual int | SetMarked (bool Marked) |
virtual QVariant | Value (const QString &name) |
virtual int | SetValue (const QString &name, const QVariant &value) |
virtual bool | Next () |
virtual bool | Prev () |
virtual bool | First () |
virtual bool | Last () |
virtual int | SetFilter (const QString &valname, const QVariant &value) |
virtual int | ClearFilter () |
virtual bool | IsFiltred () |
Public Member Functions | |
aObjectList (QObject *parent=0, const char *name=0) | |
aObjectList (const QString &oname, aDatabase *adb, QObject *parent=0, const char *name=0) | |
aObjectList (aCfgItem context, aDatabase *adb, QObject *parent=0, const char *name=0) | |
virtual | ~aObjectList () |
ERR_Code | init () |
ERR_Code | decodeDocNum (QString nm, QString &pref, int &num) |
virtual ERR_Code | select (Q_ULLONG id) |
Q_ULLONG | getUid () |
bool | selected () |
void | setSelected (bool sel) |
ERR_Code | select (const QString &query) |
virtual QString | displayString () |
Public Attributes | |
aCfg * | md |
aCfgItem | obj |
aDatabase * | db |
Protected Member Functions | |
virtual aCfgItem | displayStringContext () |
virtual ERR_Code | setObject (aCfgItem newobject) |
virtual ERR_Code | initObject () |
bool | isInited () |
void | setInited (bool flag) |
The parent object for hi level not visual objects lists for worcs with SQL database
aObjectList::aObjectList | ( | QObject * | parent = 0, |
const char * | name = 0 ) |
Craeate abstract aObjectListList.
parent | - parent object |
name | - name of object |
aObjectList::aObjectList | ( | const QString & | oname, |
aDatabase * | adb, | ||
QObject * | parent = 0, | ||
const char * | name = 0 ) |
Create aObjectList, inited by md object. md object finding by name
oname | - md name of object, name contens prefix Document. for documents, InfoRegister. for information registers, Catalogue. for catalogues, AccumulationRegister. for Accumulation registers, DocJournal. for journals |
adb | - link on object aDataBase used for work |
parent | - parent object |
name | - name of object |
References aDatabase::cfg, aCfg::find(), and setObject().
aObjectList::aObjectList | ( | aCfgItem | context, |
aDatabase * | adb, | ||
QObject * | parent = 0, | ||
const char * | name = 0 ) |
Create aObjectList, inited by md object.
context | - hi leve md object |
adb | - link on object aDataBase used for work |
parent | - parent object |
name | - name of object |
References setObject().
|
virtual |
virtual destructor.
ERR_Code aObjectList::init | ( | ) |
Tune on metadata object and it's database tables.
adb | - link on database object |
References initObject().
Referenced by setObject().
|
protectedvirtual |
Init object after create. Need setObject( id ), where id - if of the metadata object of the adb->cfg loaded Configuration.
References aDatabase::cfg, and aLog::print().
Referenced by init().
|
virtualslot |
Check object selecting.
|
virtual |
References aCfg::find(), setObject(), and aDatabase::uidType().
|
protectedvirtual |
Set new object type after create /param newobject - new md object
References init().
Referenced by aObjectList(), aObjectList(), and select().
|
virtualslot |
Set field value of the primary object database table.
References aDataTable::setValue().
|
virtualslot |
|
virtualslot |
Return field value of the primary object database table.
References aDataTable::value().