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

Nepomuk-Core

  • KTp
  • Declarative
declarative-ktp-actions.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2013 Aleix Pol <aleixpol@kde.org>
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 DECLARATIVEKTPACTIONS_H
20 #define DECLARATIVEKTPACTIONS_H
21 
22 #include <QObject>
23 #include <TelepathyQt/Types>
24 #include <KTp/contact.h>
25 
26 namespace Tp { class PendingChannelRequest; }
27 
28 class DeclarativeKTpActions : public QObject
29 {
30  Q_OBJECT
31  public Q_SLOTS:
32  Tp::PendingChannelRequest* startChat(const Tp::AccountPtr &account,
33  const KTp::ContactPtr &contact,
34  bool delegateToPreferredHandler = true);
35 
36  Tp::PendingChannelRequest* startAudioCall(const Tp::AccountPtr &account,
37  const KTp::ContactPtr &contact);
38 
39  Tp::PendingChannelRequest* startAudioVideoCall(const Tp::AccountPtr &account,
40  const KTp::ContactPtr &contact);
41 
42  Tp::PendingChannelRequest* startDesktopSharing(const Tp::AccountPtr &account,
43  const KTp::ContactPtr &contact);
44 
45  Tp::PendingOperation* startFileTransfer(const Tp::AccountPtr &account,
46  const KTp::ContactPtr &contact,
47  const QUrl& url);
48 
49  Tp::PendingChannelRequest* startFileTransfer(const Tp::AccountPtr &account,
50  const KTp::ContactPtr &contact,
51  const QString &filePath);
52 
53  void openLogViewer(const Tp::AccountPtr &account, const KTp::ContactPtr &contact);
54 };
55 
56 #endif // DECLARATIVEKTPACTIONS_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