Repository

Search for usage in LXR

Repository Class Reference

#include <repo.h>

Public Member Functions

void add (const QByteArray &key, Data_entry &data)
 
int expire ()
 
QByteArray find (const QByteArray &key) const
 
QByteArray findKeys (const QByteArray &group, const char *sep="-") const
 
int hasGroup (const QByteArray &group) const
 
int remove (const QByteArray &key)
 
int removeGroup (const QByteArray &group)
 
int removeSpecialKey (const QByteArray &key)
 

Detailed Description

String repository.

This class implements a string repository with expiration.

Definition at line 27 of file repo.h.

Member Function Documentation

void Repository::add ( const QByteArray key,
Data_entry data 
)

Add a data element.

Definition at line 25 of file repo.cpp.

int Repository::expire ( )

Remove data elements which are expired.

Definition at line 151 of file repo.cpp.

QByteArray Repository::find ( const QByteArray key) const

Return a data value.

Definition at line 138 of file repo.cpp.

QByteArray Repository::findKeys ( const QByteArray group,
const char *  sep = "-" 
) const

Returns the key values for the given group.

Definition at line 107 of file repo.cpp.

int Repository::hasGroup ( const QByteArray group) const

Checks for the existence of the specified group.

Definition at line 94 of file repo.cpp.

int Repository::remove ( const QByteArray key)

Delete a data element.

Definition at line 40 of file repo.cpp.

int Repository::removeGroup ( const QByteArray group)

Delete all data entries having the given group.

Definition at line 75 of file repo.cpp.

int Repository::removeSpecialKey ( const QByteArray key)

Delete all data entries based on key.

Definition at line 56 of file repo.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Oct 21 2021 22:46:43 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.