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

Nepomuk-Core

  • KTp
  • Declarative
contact-list.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2011 David Edmundson <kde@davidedmundson.co.uk>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef CONTACT_LIST_H
20 #define CONTACT_LIST_H
21 
22 #include <KTp/Models/contacts-list-model.h>
23 #include <KTp/Models/contacts-filter-model.h>
24 #include <KTp/contact.h>
25 
26 #include <TelepathyQt/Types>
27 
29 class ContactList : public QObject
30 {
31  Q_OBJECT
32  Q_PROPERTY(QObject* model READ filterModel CONSTANT)
33 
34  public:
35  ContactList(QObject *parent=0);
36  KTp::ContactsFilterModel* filterModel() const;
37 
38  public Q_SLOTS:
39  void startChat(const Tp::AccountPtr &account, const KTp::ContactPtr &contact);
40 
41  private Q_SLOTS:
42  void onAccountManagerReady(Tp::PendingOperation *op);
43  void onGenericOperationFinished(Tp::PendingOperation *op);
44 
45  private:
46  KTp::ContactsListModel* m_contactsModel;
47  KTp::ContactsFilterModel* m_filterModel;
48  Tp::AccountManagerPtr m_accountManager;
49 };
50 
51 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Fri Mar 22 2013 10:58:52 by doxygen 1.8.1.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ktp-common-internals API Reference

Skip menu "ktp-common-internals API Reference"
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