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.

Constructor & Destructor Documentation

◆ Repository()

Repository::Repository ( )

Definition at line 16 of file repo.cpp.

◆ ~Repository()

Repository::~Repository ( )

Definition at line 21 of file repo.cpp.

Member Function Documentation

◆ add()

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

Add a data element.

Definition at line 25 of file repo.cpp.

◆ expire()

int Repository::expire ( )

Remove data elements which are expired.

Definition at line 151 of file repo.cpp.

◆ find()

QByteArray Repository::find ( const QByteArray & key) const

Return a data value.


Definition at line 138 of file repo.cpp.

◆ findKeys()

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.

◆ hasGroup()

int Repository::hasGroup ( const QByteArray & group) const

Checks for the existence of the specified group.

Definition at line 94 of file repo.cpp.

◆ remove()

int Repository::remove ( const QByteArray & key)

Delete a data element.

Definition at line 40 of file repo.cpp.

◆ removeGroup()

int Repository::removeGroup ( const QByteArray & group)

Delete all data entries having the given group.


Definition at line 75 of file repo.cpp.

◆ removeSpecialKey()

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-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:50 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.