Ananas Library  0.9.5
Public Slots | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
aObjectList Class Reference

#include <aobjectlist.h>

Inheritance diagram for aObjectList:

Public Slots

virtual aObjectcurrentObject () 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

aCfgmd
 
aCfgItem obj
 
aDatabasedb
 

Protected Member Functions

virtual aCfgItem displayStringContext ()
 
virtual ERR_Code setObject (aCfgItem newobject)
 
virtual ERR_Code initObject ()
 
bool isInited ()
 
void setInited (bool flag)
 

Detailed Description

The parent object for hi level not visual objects lists for worcs with SQL database

Constructor & Destructor Documentation

◆ aObjectList() [1/3]

aObjectList::aObjectList ( QObject *  parent = 0,
const char *  name = 0 
)

Craeate abstract aObjectListList.

Parameters
parent- parent object
name- name of object

◆ aObjectList() [2/3]

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

Parameters
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() [3/3]

aObjectList::aObjectList ( aCfgItem  context,
aDatabase adb,
QObject *  parent = 0,
const char *  name = 0 
)

Create aObjectList, inited by md object.

Parameters
context- hi leve md object
adb- link on object aDataBase used for work
parent- parent object
name- name of object

References setObject().

◆ ~aObjectList()

aObjectList::~aObjectList ( )
virtual

virtual destructor.

Member Function Documentation

◆ init()

ERR_Code aObjectList::init ( )

Tune on metadata object and it's database tables.

Parameters
adb- link on database object
Returns
error code

References initObject().

Referenced by setObject().

◆ initObject()

ERR_Code aObjectList::initObject ( )
protectedvirtual

Init object after create. Need setObject( id ), where id - if of the metadata object of the adb->cfg loaded Configuration.

Returns
error code

References aDatabase::cfg, and aLog::print().

Referenced by init().

◆ IsSelected

bool aObjectList::IsSelected ( )
virtualslot

Check object selecting.

Returns
true if object record selected in database.

◆ setObject()

ERR_Code aObjectList::setObject ( aCfgItem  newobject)
protectedvirtual

Set new object type after create /param newobject - new md object

Returns
error code

References init().

Referenced by aObjectList().

◆ SetValue

int aObjectList::SetValue ( const QString &  name,
const QVariant &  value 
)
virtualslot

Set field value of the primary object database table.

References aDataTable::setValue().

◆ Value

QVariant aObjectList::Value ( const QString &  name)
virtualslot

Return field value of the primary object database table.

References aDataTable::value().


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