00001 /* 00002 This file is part of the Opie Project 00003 Copyright (C) Holger Freyther <freyther@handhelds.org> 00004 Copyright (C) Stefan Eilers <stefan@eilers-online.net> 00005 =. Copyright (C) The Opie Team <opie-devel@handhelds.org> 00006 .=l. 00007 .>+-= 00008 _;:, .> :=|. This program is free software; you can 00009 .> <`_, > . <= redistribute it and/or modify it under 00010 :`=1 )Y*s>-.-- : the terms of the GNU Library General Public 00011 .="- .-=="i, .._ License as published by the Free Software 00012 - . .-<_> .<> Foundation; either version 2 of the License, 00013 ._= =} : or (at your option) any later version. 00014 .%`+i> _;_. 00015 .i_,=:_. -<s. This program is distributed in the hope that 00016 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 00017 : .. .:, . . . without even the implied warranty of 00018 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 00019 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU 00020 ..}^=.= = ; Library General Public License for more 00021 ++= -. .` .: details. 00022 : = ...= . :.=- 00023 -. .:....=;==+<; You should have received a copy of the GNU 00024 -_. . . )=. = Library General Public License along with 00025 -- :-=` this library; see the file COPYING.LIB. 00026 If not, write to the Free Software Foundation, 00027 Inc., 59 Temple Place - Suite 330, 00028 Boston, MA 02111-1307, USA. 00029 */ 00040 #ifndef _OCONTACTACCESSBACKEND_H_ 00041 #define _OCONTACTACCESSBACKEND_H_ 00042 00043 #include <opie2/opimcontact.h> 00044 #include <opie2/opimaccessbackend.h> 00045 00046 #include <qregexp.h> 00047 00048 namespace Opie { 00059 class OPimContactAccessBackend: public OPimAccessBackend<OPimContact> { 00060 public: 00061 OPimContactAccessBackend(); 00062 00063 00077 virtual bool wasChangedExternally() = 0; 00078 00084 const uint querySettings() const; 00085 00090 bool hasQuerySettings (uint querySettings) const; 00091 00095 UIDArray queryByExample( const UIDArray& uidlist, const OPimContact&, int settings, const QDateTime &d = QDateTime() ) const; 00100 UIDArray sorted( const UIDArray&, bool asc, int, int, const QArray<int>& )const; 00101 OPimBackendOccurrence::List occurrences( const QDate&, const QDate& )const; 00103 00104 00105 private: 00106 class Private; 00107 Private *d; 00108 }; 00109 00110 } 00111 00112 #endif
1.4.2