@ -75,7 +75,7 @@ class KpxDateTime:public QDateTime{
};
//! Entry Data Structure
/*! This class holds the data of a normal database entry. It is used by some interface functions to process predefined entries and can be used for internal data handling.*/
/*! This class holds the data of a normal database entry. It is used by some interface functions to process predefined entries and can be used for internal data handling.*/
classCEntry{
public:
CEntry();
@ -97,7 +97,7 @@ public:
};
//! Group Data Structure
/*! This class holds the data of a normal database group. It is used by some interface functions to process predefined groups and can be used for internal data handling.*/
/*! This class holds the data of a normal database group. It is used by some interface functions to process predefined groups and can be used for internal data handling.*/
classCGroup{
public:
CGroup();
@ -147,15 +147,16 @@ public:
virtualKpxDateTimeexpire()=0;
virtualQByteArraybinary()=0;
virtualquint32binarySize()=0;
virtualQStringfriendlySize()=0;
//! \return the index of the entry amongst the entries of its group. The index of the first entry is 0.
virtualintvisualIndex()const=0;
/*! Sets the visual index of an entry. The indices of all other entries in the same group get automaticly readjusted by this function.
\paramindexThenewvisualindex.
*/
virtualvoidsetVisualIndex(intindex)=0;
/*! Sets the visual index of an entry. The indices of all other entries in the same group need to be adjusted manually!
//! \return a pointer to the handle of the parent group or NULL if the group has no parent.
virtualIGroupHandle*parent()=0;
//! \return a List of pointers to the handles of all childs of the group and an empty list if the group has no childs. The list is sorted and starts with the first child.
virtualQList<IGroupHandle*>childs()=0;
//! \return the index of the group amongst the childs of its parent. The index of the first child is 0.
virtualintindex()=0;
/*! Sets the index of a group amongst the childs of its parent.
/*! It is not allowed to call this function if a database is already loaded.
\returnTRUEifsavingwassuccessfull,otherwiseFALSE.
*/
*/
virtualvoidcreate()=0;
virtualboolchangeFile(constQString&filename)=0;
virtualQFile*file()=0;
//! \return a list with the pointers to the handles of all entries of the database. The list contains only valid handles. The list is not sorted.
virtualQList<IEntryHandle*>entries()=0;
//! \param Group The group which contains the wanted entries.
//! \return a list of pointers to the handles of all entries which belong to the given group. The list contains only valid handles and is sorted in an ascending order regarding to the entry indices.
//! \return a list with the pointers to the handles of all expired entries of the database. The list contains only valid handles. The list is not sorted.
virtualQList<IEntryHandle*>expiredEntries()=0;
//! \return a list with the pointers to the handles of all entries of the database. The list contains only valid handles and is not sorted.