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

Nepomuk-Core

  • KTp
presence.h
Go to the documentation of this file.
1 /*
2  * Global Presence - wrap Tp::Presence with KDE functionality
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 #ifndef PRESENCE_H
23 #define PRESENCE_H
24 
25 #include <TelepathyQt/Presence>
26 
27 #include <KIcon>
28 
29 #include <KTp/ktp-export.h>
30 
31 namespace KTp
32 {
33 
34 class KTP_EXPORT Presence : public Tp::Presence
35 {
36 public:
37  Presence();
38  Presence(const Tp::Presence &presence);
39 
46  KIcon icon(bool useImIcons = false) const;
47 
55  KIcon icon(QStringList overlays, bool useImIcons = false) const;
56 
64  QString iconName(bool useImIcons = false) const;
65 
71  QString displayString() const;
72 
76  bool operator <(const Presence &other) const;
77 
83  static int sortPriority(const Tp::ConnectionPresenceType &type);
84 };
85 
86 }
87 
88 Q_DECLARE_METATYPE(KTp::Presence);
89 
90 #endif // PRESENCE_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