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

kopete/kopete

  • sources
  • kde-4.12
  • kdenetwork
  • kopete
  • kopete
  • chatwindow
kopeteemailwindow.h
Go to the documentation of this file.
1 /*
2  kopeteemailwindow.h - Kopete "email window" for single-shot messages
3 
4  Copyright (c) 2002 by Daniel Stone <dstone@kde.org>
5  Copyright (c) 2003 by Jason Keirstead <jason@keirstead.org>
6  Copyright (c) 2003 by Martijn Klingens <klingens@kde.org>
7 
8  Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
9 
10  *************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  *************************************************************************
18 */
19 
20 #ifndef KOPETEEMAILWINDOW_H
21 #define KOPETEEMAILWINDOW_H
22 
23 #include "kopeteview.h"
24 #include "kopeteviewplugin.h"
25 #include <kxmlguiwindow.h>
26 #include <kparts/mainwindow.h>
27 #include <QCloseEvent>
28 
29 class EmailWindowPlugin;
30 
31 class KopeteEmailWindow : KParts::MainWindow, public KopeteView
32 {
33  Q_OBJECT
34 
35 public:
36  enum WindowMode { Send, Read, Reply };
37 
38  KopeteEmailWindow( Kopete::ChatSession *, EmailWindowPlugin *parent, bool foreignMessage );
39  ~KopeteEmailWindow();
40 
41  virtual Kopete::Message currentMessage();
42  virtual void setCurrentMessage( const Kopete::Message &newMessage );
43  virtual void raise(bool activate=false);
44  virtual void makeVisible();
45  virtual bool closeView( bool force = false );
46  virtual bool isVisible();
47  virtual QWidget *mainWidget() { return this; }
48 
49 public slots:
50  virtual void sendMessage();
51  virtual void appendMessage( Kopete::Message &message );
52  virtual void messageSentSuccessfully();
53 
54 signals:
55  void shown();
56  void messageSent( Kopete::Message &message );
57  void closing( KopeteView *view );
58  void activated( KopeteView *view );
59 
60 protected:
61  virtual void closeEvent( QCloseEvent *e );
62  virtual void changeEvent( QEvent *e );
63 
64 private slots:
65  void slotReplySend();
66  void slotUpdateReplySend();
67  void slotReadNext();
68  void slotReadPrev();
69  void slotCloseView();
70 
71  void slotSmileyActivated( const QString & );
72  void slotCopy();
73 
74  void slotViewMenuBar();
75 
76  void slotConfToolbar();
77 
78  void slotMarkMessageRead();
79 
80 private:
81  class Private;
82  Private * const d;
83 
84  void toggleMode( WindowMode );
85  void updateNextButton();
86  void initActions();
87  void writeMessage( Kopete::Message & );
88 };
89 
90 
94 class EmailWindowPlugin : public Kopete::ViewPlugin
95 {
96  public:
97  EmailWindowPlugin(QObject *parent, const QVariantList &args);
98  KopeteView* createView( Kopete::ChatSession *manager );
99 };
100 
101 #endif // __KOPETEEMAILWINDOW_H__
102 
103 // vim: set noet ts=4 sts=4 sw=4:
104 
KopeteEmailWindow::activated
void activated(KopeteView *view)
EmailWindowPlugin::createView
KopeteView * createView(Kopete::ChatSession *manager)
Definition: kopeteemailwindow.cpp:78
KopeteEmailWindow::setCurrentMessage
virtual void setCurrentMessage(const Kopete::Message &newMessage)
Definition: kopeteemailwindow.cpp:582
QWidget
manager
virtual Kopete::ChatSession * manager(Kopete::Contact::CanCreateFlags)
Definition: chatwindowconfig.cpp:94
KopeteEmailWindow::shown
void shown()
KopeteEmailWindow::Send
Definition: kopeteemailwindow.h:36
QObject
KopeteEmailWindow::changeEvent
virtual void changeEvent(QEvent *e)
Definition: kopeteemailwindow.cpp:559
KopeteEmailWindow::~KopeteEmailWindow
~KopeteEmailWindow()
Definition: kopeteemailwindow.cpp:202
KopeteEmailWindow::makeVisible
virtual void makeVisible()
Definition: kopeteemailwindow.cpp:565
KopeteEmailWindow::currentMessage
virtual Kopete::Message currentMessage()
Definition: kopeteemailwindow.cpp:577
KopeteEmailWindow::isVisible
virtual bool isVisible()
Definition: kopeteemailwindow.cpp:572
KopeteEmailWindow::WindowMode
WindowMode
Definition: kopeteemailwindow.h:36
KopeteEmailWindow::Read
Definition: kopeteemailwindow.h:36
KopeteEmailWindow::appendMessage
virtual void appendMessage(Kopete::Message &message)
Definition: kopeteemailwindow.cpp:330
EmailWindowPlugin
This is the class that makes the emailwindow a plugin.
Definition: kopeteemailwindow.h:94
KopeteEmailWindow::mainWidget
virtual QWidget * mainWidget()
Definition: kopeteemailwindow.h:47
KopeteEmailWindow::messageSent
void messageSent(Kopete::Message &message)
KopeteEmailWindow::closing
void closing(KopeteView *view)
KopeteEmailWindow::messageSentSuccessfully
virtual void messageSentSuccessfully()
Definition: kopeteemailwindow.cpp:437
KopeteEmailWindow
Definition: kopeteemailwindow.h:31
KopeteEmailWindow::Reply
Definition: kopeteemailwindow.h:36
KopeteEmailWindow::KopeteEmailWindow
KopeteEmailWindow(Kopete::ChatSession *, EmailWindowPlugin *parent, bool foreignMessage)
Definition: kopeteemailwindow.cpp:109
KopeteEmailWindow::sendMessage
virtual void sendMessage()
Definition: kopeteemailwindow.cpp:426
KopeteEmailWindow::closeEvent
virtual void closeEvent(QCloseEvent *e)
Definition: kopeteemailwindow.cpp:281
KopeteEmailWindow::closeView
virtual bool closeView(bool force=false)
Definition: kopeteemailwindow.cpp:445
EmailWindowPlugin::EmailWindowPlugin
EmailWindowPlugin(QObject *parent, const QVariantList &args)
Definition: kopeteemailwindow.cpp:74
KopeteView
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/kopete

Skip menu "kopete/kopete"
  • 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