diff options
author | Timothy Pearson <[email protected]> | 2011-11-06 15:56:34 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-11-06 15:56:34 -0600 |
commit | b529f046c9a64ac5fcfa60747af940cf972b3ebc (patch) | |
tree | 83c28cf7fa8fed1960ebd3924b579e7ed8c95cc6 /kdesu/kdesud/repo.h | |
parent | 6508fe4c40c60fd7a43bd3d9e19b762e10ea3f53 (diff) | |
download | tdebase-b529f046c9a64ac5fcfa60747af940cf972b3ebc.tar.gz tdebase-b529f046c9a64ac5fcfa60747af940cf972b3ebc.zip |
Actually move the kde files that were renamed in the last commit
Diffstat (limited to 'kdesu/kdesud/repo.h')
-rw-r--r-- | kdesu/kdesud/repo.h | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/kdesu/kdesud/repo.h b/kdesu/kdesud/repo.h deleted file mode 100644 index 70027793f..000000000 --- a/kdesu/kdesud/repo.h +++ /dev/null @@ -1,68 +0,0 @@ -/* vi: ts=8 sts=4 sw=4 - * - * This file is part of the KDE project, module tdesu. - * Copyright (C) 1999,2000 Geert Jansen <[email protected]> - */ - -#ifndef __Repo_h_included__ -#define __Repo_h_included__ - - -#include <tqmap.h> -#include <tqcstring.h> - - -/** - * Used internally. - */ -struct Data_entry -{ - TQCString value; - TQCString group; - unsigned int timeout; -}; - - -/** - * String repository. - * - * This class implements a string repository with expiration. - */ -class Repository { -public: - Repository(); - ~Repository(); - - /** Remove data elements which are expired. */ - int expire(); - - /** Add a data element */ - void add(const TQCString& key, Data_entry& data); - - /** Delete a data element. */ - int remove(const TQCString& key); - - /** Delete all data entries having the given group. */ - int removeGroup(const TQCString& group); - - /** Delete all data entries based on key. */ - int removeSpecialKey(const TQCString& key ); - - /** Checks for the existence of the specified group. */ - int hasGroup(const TQCString &group) const; - - /** Return a data value. */ - TQCString find(const TQCString& key) const; - - /** Returns the key values for the given group. */ - TQCString findKeys(const TQCString& group, const char *sep= "-") const; - -private: - - TQMap<TQCString,Data_entry> repo; - typedef TQMap<TQCString,Data_entry>::Iterator RepoIterator; - typedef TQMap<TQCString,Data_entry>::ConstIterator RepoCIterator; - unsigned head_time; -}; - -#endif |