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

kopete/libkopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • libkopete
chatsessionmemberslistmodel.h
Go to the documentation of this file.
1 /*
2  ChatSessionMembersListModel
3 
4  Copyright (c) 2007 by Duncan Mac-Vicar Prett <duncan@kde.org>
5 
6  Kopete (c) 2002-2007 by the Kopete developers <kopete-devel@kde.org>
7 
8  *************************************************************************
9  * *
10  * This library is free software; you can redistribute it and/or *
11  * modify it under the terms of the GNU Lesser General Public *
12  * License as published by the Free Software Foundation; either *
13  * version 2 of the License, or (at your option) any later version. *
14  * *
15  *************************************************************************
16 */
17 
18 #ifndef Kopete_ChatSessionMembersListModel_H
19 #define Kopete_ChatSessionMembersListModel_H
20 
21 #include <QAbstractListModel>
22 
23 #include "kopetechatsession.h"
24 #include "kopete_export.h"
25 
26 class Private;
27 
28 namespace Kopete
29 {
30 
31 class Contact;
32 
33 class KOPETE_EXPORT ChatSessionMembersListModel : public QAbstractListModel
34 {
35  Q_OBJECT
36 public:
37  explicit ChatSessionMembersListModel(QObject * parent = 0);
38 
39  ~ChatSessionMembersListModel();
40 
41  // Model methods
42  int rowCount(const QModelIndex &parent = QModelIndex()) const;
43  QVariant data(const QModelIndex &index, int role) const;
44  QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
45  Kopete::ChatSession *session();
46 
47  Kopete::Contact *contactAt( const QModelIndex &index ) const;
48 public slots:
52  void setChatSession(Kopete::ChatSession *session);
53 
54 private slots:
60  void slotContactAdded( const Kopete::Contact *c );
61 
62 
68  void slotContactRemoved( const Kopete::Contact *c );
69 
73  void slotContactNickNameChanged( Kopete::Contact *contact);
74 
80  void slotContactStatusChanged( Kopete::Contact *contact, const Kopete::OnlineStatus &status );
81 
86  void slotSessionChanged();
87 
91  void slotSessionClosed();
92 
93 private:
94  Private *d;
95 };
96 
97 
98 }
99 
100 #endif
101 
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
Kopete::OnlineStatus
Definition: kopeteonlinestatus.h:68
QModelIndex
status
OnlineStatus::StatusType status
Definition: kopeteonlinestatus.cpp:103
Kopete::ChatSession
Definition: kopetechatsession.h:74
QObject
QAbstractListModel
kopetechatsession.h
kopete_export.h
Kopete::Contact
Definition: kopetecontact.h:58
Kopete::ChatSessionMembersListModel
Definition: chatsessionmemberslistmodel.h:33
QVariant
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



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