• 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
kopetesimplemessagehandler.h
Go to the documentation of this file.
1 /*
2  kopetesimplemessagehandler.h - Kopete Message Filtering - simple interface
3 
4  Copyright (c) 2004 by Richard Smith <kde@metafoo.co.uk>
5  Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
6 
7  *************************************************************************
8  * *
9  * This library is free software; you can redistribute it and/or *
10  * modify it under the terms of the GNU Lesser General Public *
11  * License as published by the Free Software Foundation; either *
12  * version 2 of the License, or (at your option) any later version. *
13  * *
14  *************************************************************************
15 */
16 
17 #ifndef KOPETESIMPLEMESSAGEHANDLER_H
18 #define KOPETESIMPLEMESSAGEHANDLER_H
19 
20 #include "kopete_export.h"
21 #include "kopetemessagehandler.h"
22 
23 namespace Kopete
24 {
25 
37 class KOPETE_EXPORT SimpleMessageHandlerFactory : public MessageHandlerFactory
38 {
39 public:
47  SimpleMessageHandlerFactory( Message::MessageDirection direction, int position,
48  QObject *target, const char *slot );
49  ~SimpleMessageHandlerFactory();
50 
54  MessageHandler *create( ChatSession *manager, Message::MessageDirection direction );
59  int filterPosition( ChatSession *manager, Message::MessageDirection direction );
60 
61 private:
62  class Private;
63  Private * const d;
64 };
65 
69 class SimpleMessageHandler : public MessageHandler
70 {
71  Q_OBJECT
72 public:
73  SimpleMessageHandler();
74  ~SimpleMessageHandler();
75 
76  void handleMessage( MessageEvent *event );
77 
78 signals:
79  void handle( Kopete::Message &message );
80 
81 private:
82  class Private;
83  Private * const d;
84 };
85 
86 }
87 
88 #endif
89 
90 // vim: set noet ts=4 sts=4 sw=4:
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
Kopete::MessageEvent
Definition: kopetemessageevent.h:41
Kopete::SimpleMessageHandlerFactory
A MessageHandlerFactory that creates synchronous MessageHandlers that just call a slot...
Definition: kopetesimplemessagehandler.h:37
Kopete::MessageHandlerFactory
Definition: kopetemessagehandler.h:109
Kopete::ChatSession
Definition: kopetechatsession.h:74
Kopete::SimpleMessageHandler::handle
void handle(Kopete::Message &message)
QObject::event
virtual bool event(QEvent *e)
QObject
Kopete::Message::MessageDirection
MessageDirection
Direction of a message.
Definition: kopetemessage.h:88
kopete_export.h
Kopete::SimpleMessageHandler::SimpleMessageHandler
SimpleMessageHandler()
Definition: kopetesimplemessagehandler.cpp:77
Kopete::SimpleMessageHandler
Definition: kopetesimplemessagehandler.h:69
Kopete::MessageHandler
Definition: kopetemessagehandler.h:44
Kopete::SimpleMessageHandler::handleMessage
void handleMessage(MessageEvent *event)
Performs any processing necessary on the message.
Definition: kopetesimplemessagehandler.cpp:87
kopetemessagehandler.h
Kopete::SimpleMessageHandler::~SimpleMessageHandler
~SimpleMessageHandler()
Definition: kopetesimplemessagehandler.cpp:82
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