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

Nepomuk-Core

  • KTp
  • Models
text-channel-watcher-proxy-model.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013 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 St, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #ifndef KTP_TEXT_CHANNEL_WATCHER_PROXY_MODEL_H
20 #define KTP_TEXT_CHANNEL_WATCHER_PROXY_MODEL_H
21 
22 #include <TelepathyQt/AbstractClientObserver>
23 #include <TelepathyQt/TextChannel>
24 
25 #include <QIdentityProxyModel>
26 
27 #include <ktp-export.h>
28 
29 namespace KTp
30 {
31 
33 class KTP_EXPORT TextChannelWatcherProxyModel : public QIdentityProxyModel, public Tp::AbstractClientObserver
34 {
35  Q_OBJECT
36 public:
37  explicit TextChannelWatcherProxyModel(QObject *parent=0);
38  virtual ~TextChannelWatcherProxyModel();
39 
40  virtual void observeChannels(const Tp::MethodInvocationContextPtr<> &context,
41  const Tp::AccountPtr &account,
42  const Tp::ConnectionPtr &connection,
43  const QList<Tp::ChannelPtr> &channels,
44  const Tp::ChannelDispatchOperationPtr &dispatchOperation,
45  const QList<Tp::ChannelRequestPtr> &requestsSatisfied,
46  const Tp::AbstractClientObserver::ObserverInfo &observerInfo);
47 
48  QVariant data(const QModelIndex &proxyIndex, int role) const;
49 
50 private Q_SLOTS:
51  void onChannelMessagesChanged();
52  void onChannelInvalidated();
53 
54 private:
55  class Private;
56  Private *d;
57 };
58 
59 }
60 
61 #endif // KTP_TEXT_CHANNEL_WATCHER_PROXY_MODEL_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