You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
161 lines
4.5 KiB
161 lines
4.5 KiB
13 years ago
|
//
|
||
|
// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
|
||
|
// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
|
||
|
// may also apply
|
||
|
|
||
|
|
||
|
// Generated by preSip
|
||
12 years ago
|
// module tdeabc version KDE 3.5.3
|
||
13 years ago
|
|
||
|
|
||
|
// This software is free software; you can redistribute it and/or
|
||
|
// modify it under the terms of the GNU General Public License as
|
||
|
// published by the Free Software Foundation; either version 2 of
|
||
|
// the License, or (at your option) any later version.
|
||
|
//
|
||
|
// This software is distributed in the hope that it will be useful,
|
||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
// GNU General Public License for more details.
|
||
|
//
|
||
|
// You should have received a copy of the GNU General Public
|
||
|
// License along with this library; see the file COPYING.
|
||
|
// If not, write to the Free Software Foundation, Inc.,
|
||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||
|
|
||
12 years ago
|
namespace TDEABC
|
||
13 years ago
|
{
|
||
|
|
||
|
class Ticket
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
12 years ago
|
#include <tdeabc/resource.h>
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
12 years ago
|
TDEABC::Resource* resource ();
|
||
13 years ago
|
|
||
|
private:
|
||
12 years ago
|
Ticket (TDEABC::Resource*);
|
||
13 years ago
|
|
||
|
}; // class Ticket
|
||
|
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
|
||
|
class Resource : KRES::Resource
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
12 years ago
|
#include <tdeabc/resource.h>
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
|
|
||
|
//ig class Iterator;
|
||
|
|
||
|
|
||
|
//ig class ConstIterator;
|
||
|
|
||
12 years ago
|
Resource (const TDEConfig*);
|
||
12 years ago
|
//ig virtual TDEABC::Resource::ConstIterator begin () const;
|
||
|
//ig virtual TDEABC::Resource::Iterator begin ();
|
||
|
//ig virtual TDEABC::Resource::ConstIterator end () const;
|
||
|
//ig virtual TDEABC::Resource::Iterator end ();
|
||
|
TDEABC::AddressBook* addressBook ();
|
||
12 years ago
|
virtual void writeConfig (TDEConfig*);
|
||
12 years ago
|
virtual TDEABC::Ticket* requestSaveTicket () = 0;
|
||
|
virtual void releaseSaveTicket (TDEABC::Ticket*) = 0;
|
||
13 years ago
|
virtual bool load () = 0;
|
||
|
virtual bool asyncLoad ();
|
||
12 years ago
|
virtual void insertAddressee (const TDEABC::Addressee&);
|
||
|
virtual void removeAddressee (const TDEABC::Addressee&);
|
||
|
virtual bool save (TDEABC::Ticket*) = 0;
|
||
|
virtual bool asyncSave (TDEABC::Ticket*);
|
||
|
virtual TDEABC::Addressee findByUid (const TQString&);
|
||
|
virtual TDEABC::Addressee::List findByName (const TQString&);
|
||
|
virtual TDEABC::Addressee::List findByEmail (const TQString&);
|
||
|
virtual TDEABC::Addressee::List findByCategory (const TQString&);
|
||
13 years ago
|
virtual void clear ();
|
||
12 years ago
|
void setAddressBook (TDEABC::AddressBook*);
|
||
13 years ago
|
|
||
|
signals:
|
||
12 years ago
|
void loadingFinished (TDEABC::Resource*);
|
||
|
void loadingError (TDEABC::Resource*, const TQString&);
|
||
|
void savingFinished (TDEABC::Resource*);
|
||
|
void savingError (TDEABC::Resource*, const TQString&);
|
||
13 years ago
|
|
||
|
protected:
|
||
12 years ago
|
TDEABC::Ticket* createTicket (TDEABC::Resource*);
|
||
13 years ago
|
|
||
|
}; // class Resource
|
||
|
|
||
|
%End
|
||
|
|
||
|
|
||
|
%If ( KDE_3_1_0 - KDE_3_2_0 )
|
||
|
|
||
12 years ago
|
class Resource : TDEABC::Plugin
|
||
13 years ago
|
{
|
||
|
%TypeHeaderCode
|
||
12 years ago
|
#include <tdeabc/resource.h>
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
12 years ago
|
Resource (TDEABC::AddressBook*);
|
||
13 years ago
|
virtual bool open ();
|
||
|
virtual void close ();
|
||
12 years ago
|
virtual TDEABC::Ticket* requestSaveTicket ();
|
||
13 years ago
|
virtual bool load ();
|
||
12 years ago
|
virtual bool save (TDEABC::Ticket*);
|
||
|
TDEABC::AddressBook* addressBook ();
|
||
13 years ago
|
virtual TQString identifier () const;
|
||
12 years ago
|
virtual void removeAddressee (const TDEABC::Addressee&);
|
||
13 years ago
|
virtual void cleanUp ();
|
||
|
virtual void setReadOnly (bool);
|
||
|
virtual bool readOnly () const;
|
||
|
virtual void setFastResource (bool);
|
||
|
virtual bool fastResource () const;
|
||
13 years ago
|
virtual void setName (const TQString);
|
||
|
virtual TQString name () const;
|
||
|
static TQString cryptStr (const TQString&);
|
||
13 years ago
|
|
||
|
protected:
|
||
12 years ago
|
TDEABC::Ticket* createTicket (TDEABC::Resource*);
|
||
13 years ago
|
|
||
|
}; // class Resource
|
||
|
|
||
|
%End
|
||
|
|
||
|
|
||
|
%If ( - KDE_3_1_0 )
|
||
|
|
||
|
class Resource
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
12 years ago
|
#include <tdeabc/resource.h>
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
12 years ago
|
Resource (TDEABC::AddressBook*);
|
||
13 years ago
|
virtual bool open ();
|
||
|
virtual void close ();
|
||
12 years ago
|
virtual TDEABC::Ticket* requestSaveTicket ();
|
||
|
virtual bool load (TDEABC::AddressBook*);
|
||
|
virtual bool save (TDEABC::Ticket*);
|
||
|
void setAddressBook (TDEABC::AddressBook*);
|
||
|
TDEABC::AddressBook* addressBook ();
|
||
13 years ago
|
|
||
|
protected:
|
||
12 years ago
|
TDEABC::Ticket* createTicket (TDEABC::Resource*);
|
||
13 years ago
|
|
||
|
}; // class Resource
|
||
|
|
||
|
%End
|
||
|
|
||
12 years ago
|
}; // namespace TDEABC
|
||
13 years ago
|
|