Warning, file /network/ktp-contact-list/contact-overlays.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     Contact overlay buttons
0003 
0004     Copyright (C) 2009 Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
0005     Copyright (C) 2011 Martin Klapetek <martin dot klapetek at gmail dot com>
0006 
0007     This library is free software; you can redistribute it and/or
0008     modify it under the terms of the GNU Lesser General Public
0009     License as published by the Free Software Foundation; either
0010     version 2.1 of the License, or (at your option) any later version.
0011 
0012     This library is distributed in the hope that it will be useful,
0013     but WITHOUT ANY WARRANTY; without even the implied warranty of
0014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0015     Lesser General Public License for more details.
0016 
0017     You should have received a copy of the GNU Lesser General Public
0018     License along with this library; if not, write to the Free Software
0019     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
0020 */
0021 
0022 #ifndef CONTACTOVERLAYS_H
0023 #define CONTACTOVERLAYS_H
0024 
0025 #include <KGuiItem>
0026 
0027 #include "contact-delegate-overlay.h"
0028 #include "contact-view-hover-button.h"
0029 
0030 #include <TelepathyQt/Types>
0031 
0032 class StartChannelContactOverlay : public ContactDelegateOverlay
0033 {
0034     Q_OBJECT
0035 
0036 public:
0037     StartChannelContactOverlay(QObject *parent, const KGuiItem &gui,
0038                                int capabilityRole, int xpos);
0039 
0040 public Q_SLOTS:
0041     virtual void setActive(bool active);
0042 
0043 Q_SIGNALS:
0044     void activated(const Tp::AccountPtr &account, const Tp::ContactPtr &contact);
0045 
0046 protected:
0047 
0048     virtual ContactViewHoverButton* createButton();
0049     virtual void updateButton(const QModelIndex& index);
0050     virtual bool checkIndex(const QModelIndex& index) const;
0051 
0052 protected Q_SLOTS:
0053 
0054     void slotClicked(bool checked);
0055 
0056 private:
0057 
0058     KGuiItem m_gui;
0059     int m_capabilityRole;
0060     int m_xpos;
0061 };
0062 
0063 // ---------------------------------------------------------------------
0064 
0065 class TextChannelContactOverlay : public StartChannelContactOverlay
0066 {
0067     Q_OBJECT
0068 
0069 public:
0070     TextChannelContactOverlay(QObject *parent);
0071 };
0072 
0073 // ---------------------------------------------------------------------
0074 
0075 class AudioChannelContactOverlay : public StartChannelContactOverlay
0076 {
0077     Q_OBJECT
0078 
0079 public:
0080     AudioChannelContactOverlay(QObject *parent);
0081 };
0082 
0083 // ---------------------------------------------------------------------
0084 
0085 class VideoChannelContactOverlay : public StartChannelContactOverlay
0086 {
0087     Q_OBJECT
0088 
0089 public:
0090     VideoChannelContactOverlay(QObject *parent);
0091 };
0092 
0093 // ---------------------------------------------------------------------
0094 
0095 class FileTransferContactOverlay : public StartChannelContactOverlay
0096 {
0097     Q_OBJECT
0098 
0099 public:
0100     FileTransferContactOverlay(QObject *parent);
0101 };
0102 
0103 // ---------------------------------------------------------------------
0104 
0105 class LogViewerOverlay: public StartChannelContactOverlay
0106 {
0107     Q_OBJECT
0108 
0109 public:
0110     LogViewerOverlay(QObject *parent);
0111 };
0112 
0113 #endif // VERSIONSOVERLAYS_H