• 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
  • private
kopeteviewmanager.h
Go to the documentation of this file.
1 /*
2  kopeteviewmanager.h - View Manager
3 
4  Copyright (c) 2003 by Jason Keirstead
5  Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
6 
7  *************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  *************************************************************************
15 */
16 
17 #ifndef KOPETEVIEWMANAGER_H
18 #define KOPETEVIEWMANAGER_H
19 
20 #include <QtCore/QObject>
21 
22 #include "kopetemessage.h"
23 #include "kopete_export.h"
24 
25 namespace Kopete
26 {
27  class ChatSession;
28  class MessageEvent;
29 }
30 
31 class KopeteView;
32 
33 struct KopeteViewManagerPrivate;
34 
38 class KOPETE_EXPORT KopeteViewManager : public QObject
39 {
40 Q_OBJECT
41 public:
46  static KopeteViewManager *viewManager();
47 
48  KopeteViewManager();
49  ~KopeteViewManager();
50 
57  KopeteView *view( Kopete::ChatSession *session, const QString &requestedPlugin = QString() );
58 
62  KopeteView *activeView() const;
63 
68  QList<Kopete::MessageEvent*> pendingMessages( Kopete::Contact *contact );
69 
70 public slots:
78  void readMessages( Kopete::ChatSession* manager, bool isOutboundMessage, bool activate = false );
79 
87  void messageAppended( Kopete::Message &msg, Kopete::ChatSession *manager);
88 
89  void nextEvent();
90 
91 private slots:
92  void slotViewDestroyed( KopeteView *);
93  void slotChatSessionDestroyed( Kopete::ChatSession * );
94 
95 public slots:
99  void slotEventDeleted( Kopete::MessageEvent * );
100 
101  void slotPrefsChanged();
102  void slotViewActivated( KopeteView * );
103 
104 private:
105  void createNotification( Kopete::Message &msg, const QString &unchangedMessage,
106  Kopete::ChatSession *session, Kopete::MessageEvent *event,
107  QWidget *viewWidget, bool isActiveWindow, bool isViewOnCurrentDesktop);
108 
109  KopeteViewManagerPrivate *d;
110  static KopeteViewManager *s_viewManager;
111 
112 };
113 
114 #endif
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
Kopete::MessageEvent
Definition: kopetemessageevent.h:41
QWidget
Kopete::ChatSession
Definition: kopetechatsession.h:74
QObject
kopete_export.h
QString
QList< Kopete::MessageEvent * >
Kopete::Contact
Definition: kopetecontact.h:58
KopeteViewManager
Relates an actual chat to the means used to view it.
Definition: kopeteviewmanager.h:38
kopetemessage.h
KopeteView
Definition: kopeteview.h:40
Kopete::Message
Representation of a message in Kopete.
Definition: kopetemessage.h:82
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