• 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.cpp
Go to the documentation of this file.
1 /*
2  kopeteview.cpp - View Abstract Class
3 
4  Copyright (c) 2003 by Jason Keirstead
5  Copyright (c) 2003 by Olivier Goffart <ogoffart@kde.org>
6 
7  Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
8 
9  *************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or *
12  * modify it under the terms of the GNU Lesser General Public *
13  * License as published by the Free Software Foundation; either *
14  * version 2 of the License, or (at your option) any later version. *
15  * *
16  *************************************************************************
17 */
18 
19 #include "kopeteview.h"
20 
21 KopeteView::KopeteView( Kopete::ChatSession *manager, Kopete::ViewPlugin *plugin )
22  : m_manager(manager), m_plugin(plugin)
23 {
24 }
25 
26 Kopete::ChatSession *KopeteView::msgManager() const
27 {
28  return m_manager;
29 }
30 
31 void KopeteView::clear()
32 {
33  //Do nothing
34 }
35 
36 void KopeteView::appendMessages(QList<Kopete::Message> msgs)
37 {
38  QList<Kopete::Message>::iterator it;
39  for ( it = msgs.begin(); it != msgs.end(); ++it )
40  {
41  appendMessage(*it);
42  }
43 
44 }
45 
46 Kopete::ViewPlugin *KopeteView::plugin()
47 {
48  return m_plugin;
49 }
50 
51 KopeteView::~KopeteView( )
52 {
53 }
KopeteView::clear
virtual void clear()
Clear the buffer.
Definition: kopeteview.cpp:31
KopeteView::appendMessages
virtual void appendMessages(QList< Kopete::Message >)
append multiple messages to the view
Definition: kopeteview.cpp:36
KopeteView::msgManager
Kopete::ChatSession * msgManager() const
Get the message manager.
Definition: kopeteview.cpp:26
KopeteView::~KopeteView
virtual ~KopeteView()
Definition: kopeteview.cpp:51
KopeteView::appendMessage
virtual void appendMessage(Kopete::Message &)=0
add a message to the view
Kopete::ChatSession
Definition: kopetechatsession.h:74
KopeteView::m_manager
Kopete::ChatSession * m_manager
a pointer to the Kopete::ChatSession given in the constructor
Definition: kopeteview.h:173
QList
QList::iterator
QList::end
iterator end()
KopeteView::m_plugin
Kopete::ViewPlugin * m_plugin
Definition: kopeteview.h:174
KopeteView::KopeteView
KopeteView(Kopete::ChatSession *manager, Kopete::ViewPlugin *parent)
constructor
Definition: kopeteview.cpp:21
Kopete::ViewPlugin
Factory plugin for creating KopeteView objects.
Definition: kopeteviewplugin.h:38
kopeteview.h
KopeteView::plugin
Kopete::ViewPlugin * plugin()
Returns the Kopete::ViewPlugin responsible for this view.
Definition: kopeteview.cpp:46
QList::begin
iterator begin()
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