• 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
  • ui
kopeteview.h
Go to the documentation of this file.
1 /*
2  kopeteview.h - View Manager
3 
4  Copyright (c) 2003 by Jason Keirstead <jason@keirstead.org>
5  Copyright (c) 2004 by Matt Rogers <matt.rogers@kdemail.net>
6  Kopete (c) 2002-2003 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 
19 #ifndef KOPETEVIEW_H
20 #define KOPETEVIEW_H
21 
22 #include <QtGui/QWidget>
23 
24 #include "../kopetemessage.h"
25 #include "../kopete_export.h"
26 
27 namespace Kopete
28 {
29  class ViewPlugin;
30 }
31 
40 class KOPETE_EXPORT KopeteView
41 {
42  public:
46  KopeteView( Kopete::ChatSession *manager, Kopete::ViewPlugin *parent );
47  virtual ~KopeteView();
48 
53  virtual Kopete::Message currentMessage() = 0;
58  virtual void setCurrentMessage( const Kopete::Message &newMessage ) = 0;
59 
64  Kopete::ChatSession *msgManager() const;
65 
72  virtual void appendMessage( Kopete::Message & ) = 0;
73 
83  virtual void appendMessages( QList<Kopete::Message> );
84 
89  virtual void raise(bool activate = false) = 0;
90 
94  virtual void clear();
95 
101  virtual void makeVisible() = 0;
102 
106  virtual bool closeView( bool force = false ) = 0;
107 
112  virtual bool isVisible() = 0;
113 
119  virtual QWidget *mainWidget() = 0;
120 
126  virtual void messageSentSuccessfully() = 0;
127 
142  virtual void registerContextMenuHandler( QObject *target, const char*slot ){ Q_UNUSED(target); Q_UNUSED(slot); }
143 
158  virtual void registerTooltipHandler( QObject *target, const char*slot ){ Q_UNUSED(target); Q_UNUSED(slot); }
159 
167  Kopete::ViewPlugin *plugin();
168 
169  protected:
173  Kopete::ChatSession *m_manager;
174  Kopete::ViewPlugin *m_plugin;
175 };
176 
177 #endif
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
QWidget
Kopete::ChatSession
Definition: kopetechatsession.h:74
KopeteView::registerTooltipHandler
virtual void registerTooltipHandler(QObject *target, const char *slot)
Register a handler for the tooltip.
Definition: kopeteview.h:158
KopeteView::registerContextMenuHandler
virtual void registerContextMenuHandler(QObject *target, const char *slot)
Register a handler for the context menu.
Definition: kopeteview.h:142
QObject
KopeteView::m_manager
Kopete::ChatSession * m_manager
a pointer to the Kopete::ChatSession given in the constructor
Definition: kopeteview.h:173
QList
KopeteView::m_plugin
Kopete::ViewPlugin * m_plugin
Definition: kopeteview.h:174
Kopete::UI::Global::mainWidget
KOPETE_EXPORT QWidget * mainWidget()
Returns the main widget - this is the widget that message boxes and KNotify stuff should use as a par...
Definition: kopeteuiglobal.cpp:37
Kopete::ViewPlugin
Factory plugin for creating KopeteView objects.
Definition: kopeteviewplugin.h:38
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