• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/libkopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • libkopete
  • contactlist
kopetecontactliststorage.h
Go to the documentation of this file.
1 /*
2  Kopete Contact List Storage Base Class
3 
4  Copyright 2006 by Matt Rogers <mattr@kde.org>
5  Copyright 2006 by MichaĆ«l Larouche <larouche@kde.org>
6 
7  Kopete 2002-2006 by the Kopete developers <kopete-devel@kde.org>
8 
9  *************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or *
12  * modify it under the terms of the GNU Lesser General Public *
13  * License as published by the Free Software Foundation; either *
14  * version 2 of the License, or (at your option) any later version. *
15  * *
16  *************************************************************************
17 */
18 
19 #ifndef KOPETECONTACTLISTSTORAGE_H
20 #define KOPETECONTACTLISTSTORAGE_H
21 
22 #include "kopetegroup.h"
23 #include "kopetemetacontact.h"
24 #include <kopete_export.h>
25 namespace Kopete
26 {
27 
34 class KOPETE_EXPORT ContactListStorage
35 {
36 public:
37  ContactListStorage( );
38  virtual ~ContactListStorage();
39 
45  Group::List groups() const;
51  MetaContact::List contacts() const;
52 
53 public:
74  virtual bool isValid() const = 0;
75 
86  virtual QString errorMessage() const = 0;
87 
95  virtual bool isBusy() const = 0;
96 
102  virtual void load() = 0;
103 
109  virtual void save() = 0;
110 
111 protected:
120  void addMetaContact(Kopete::MetaContact *metaContact);
121 
130  void addGroup(Kopete::Group *group);
131 
138  Kopete::Group * group( unsigned int groupId ) const;
139 
149  Kopete::Group * findGroup( const QString &displayName, int type = Kopete::Group::Normal );
150 
151 private:
152  class Private;
153  Private * const d;
154 };
155 
156 }
157 
158 #endif
159 
160 //kate: indent-mode cstyle; indent-spaces on; indent-width 4; auto-insert-doxygen on; replace-tabs on
kopetemetacontact.h
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
kopetegroup.h
kopete_export.h
QString
QList
Kopete::Group::Normal
Definition: kopetegroup.h:56
Kopete::Group
Class which represents the Group.
Definition: kopetegroup.h:44
Kopete::MetaContact
Definition: kopetemetacontact.h:54
Kopete::ContactListStorage
Provide a storage for Kopete Contact List.
Definition: kopetecontactliststorage.h:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal