From ab8d331905b59a86b50cd513123cdde67e4bfb8a Mon Sep 17 00:00:00 2001 From: zecke Date: Fri, 15 Nov 2002 11:37:20 +0000 Subject: Add proposal header for Cross Referencing.. look at them and comment --- (limited to 'libopie/pim/opimxrefmanager.h') diff --git a/libopie/pim/opimxrefmanager.h b/libopie/pim/opimxrefmanager.h new file mode 100644 index 0000000..147895d --- a/dev/null +++ b/libopie/pim/opimxrefmanager.h @@ -0,0 +1,36 @@ +#ifndef OPIM_XREF_MANAGER_H +#define OPIM_XREF_MANAGER_H + +#include + +/** + * This is a simple manager for + * OPimXRefs. + * It allows addition, removing, replacing + * clearing and 'querying' the XRef... + */ +class OPimXRefManager { +public: + OPimXRefManager(); + OPimXRefManager( const OPimXRefManager& ); + ~OPimXRefManager(); + + OPimXRefManager& operator=( const OPimXRefManager& ); + bool operator==( const OPimXRefManager& ); + + void add( const OPimXRef& ); + void remove( const OPimXRef& ); + void replace( const OPimXRef& ); + + void clear(); + + /** + * apps participating + */ + QStringList apps()const; + OPimXRef::ValueList list()const; + OPimXRef::ValueList list( const QString& appName )const; + OPimXRef::ValueList list( int uid )const; +}; + +#endif -- cgit v0.9.0.2