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

Nepomuk-Core

  • KTp
  • Widgets
add-contact-dialog.h
Go to the documentation of this file.
1 /*
2  * Add contact dialog
3  *
4  * Copyright (C) 2011 David Edmundson <kde@davidedmundson.co.uk>
5  * Copyright (C) 2012 George Kiagiadakis <kiagiadakis.george@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 #ifndef ADDCONTACTDIALOG_H
23 #define ADDCONTACTDIALOG_H
24 
25 #include <KDialog>
26 
27 #include <TelepathyQt/Types>
28 
29 #include <KTp/ktp-export.h>
30 
31 namespace Tp {
32  class PendingOperation;
33 }
34 
35 namespace KTp
36 {
37 class KTP_EXPORT AddContactDialog : public KDialog
38 {
39  Q_OBJECT
40 
41 public:
42  explicit AddContactDialog(const Tp::AccountManagerPtr &accountManager, QWidget *parent = 0);
43  virtual ~AddContactDialog();
44 
45  virtual void accept();
46 
47 protected:
48  virtual void closeEvent(QCloseEvent *e);
49 
50 private Q_SLOTS:
51  KTP_NO_EXPORT void _k_onContactsForIdentifiersFinished(Tp::PendingOperation *op);
52  KTP_NO_EXPORT void _k_onRequestPresenceSubscriptionFinished(Tp::PendingOperation *op);
53 
54 private:
55  KTP_NO_EXPORT void setInProgress(bool inProgress);
56 
57  struct Private;
58  Private * const d;
59 };
60 }
61 
62 #endif // ADDCONTACTDIALOG_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