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

Nepomuk-Core

  • KTp
  • Widgets
contact-grid-dialog.h
Go to the documentation of this file.
1 /*
2  * Contact Chooser Dialog
3  *
4  * Copyright (C) 2011 David Edmundson <kde@davidedmundson.co.uk>
5  * Copyright (C) 2012 Daniele E. Domenichelli <daniele.domenichelli@gmail.com>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 
22 
23 #ifndef CONTACT_GRID_DIALOG_H
24 #define CONTACT_GRID_DIALOG_H
25 
26 #include <KDialog>
27 #include <TelepathyQt/Types>
28 #include <TelepathyQt/AccountManager>
29 #include <TelepathyQt/Account>
30 #include <TelepathyQt/Contact>
31 #include <KTp/ktp-export.h>
32 
33 namespace Tp {
34 class PendingOperation;
35 }
36 
37 class ContactsModel;
38 class QTcpSocket;
39 
40 namespace KTp {
41 class ContactGridWidget;
42 class ContactsFilterModel;
43 
44 class KTP_EXPORT ContactGridDialog : public KDialog
45 {
46  Q_OBJECT
47  Q_DISABLE_COPY(ContactGridDialog)
48 
49 public:
50  ContactGridDialog(QWidget *parent);
51  virtual ~ContactGridDialog();
52 
53  virtual KTp::ContactsFilterModel* filter() const;
54 
55  virtual Tp::AccountPtr account();
56  virtual Tp::ContactPtr contact();
57 
58 private:
59  class Private;
60  Private * const d;
61 
62  Q_PRIVATE_SLOT(d, void _k_onAccountManagerReady());
63  Q_PRIVATE_SLOT(d, void _k_onOkClicked());
64  Q_PRIVATE_SLOT(d, void _k_onChanged());
65 };
66 
67 } // namespace KTp
68 
69 #endif // CONTACT_GRID_DIALOG_H
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