core.h
1
21#ifndef KOMPOSER_CORE_H
22#define KOMPOSER_CORE_H
23
24#include "komposerIface.h"
25
26#include <tdemainwindow.h>
27#include <tqptrlist.h>
28
29namespace KSettings {
30 class Dialog;
31}
32class TQWidgetStack;
33
34namespace Komposer
35{
36
37 class Editor;
38 class Plugin;
39 class PluginManager;
40
44 class Core : public TDEMainWindow, virtual public KomposerIface
45 {
46 TQ_OBJECT
47
48 public:
49 Core( TQWidget *parentWidget = 0, const char *name = 0 );
50 virtual ~Core();
51
52 public slots:
53 virtual void send( int how );
54 virtual void addAttachment( const KURL &url, const TQString &comment );
55 virtual void setBody( const TQString &body );
56 virtual void addAttachment( const TQString &name,
57 const TQCString &cte,
58 const TQByteArray &data,
59 const TQCString &type,
60 const TQCString &subType,
61 const TQCString &paramAttr,
62 const TQString &paramValue,
63 const TQCString &contDisp );
64
65
66
67 protected slots:
68 //void slotActivePartChanged( KParts::Part *part );
69 void slotPluginLoaded( Plugin* );
70 void slotAllPluginsLoaded();
71 void slotPreferences();
72 void slotQuit();
73 void slotClose();
74
75 void slotSendNow();
76 void slotSendLater();
77 void slotSaveDraft();
78 void slotInsertFile();
79 void slotAddrBook();
80 void slotNewComposer();
81 void slotAttachFile();
82
83 protected:
84 virtual void initWidgets();
85 void initCore();
86 void initConnections();
87 void loadSettings();
88 void saveSettings();
89 void createActions();
90
91 void addEditor( Komposer::Editor *editor );
92 void addPlugin( Komposer::Plugin *plugin );
93
94 private:
95 TQWidgetStack *m_stack;
96 Editor *m_currentEditor;
97 PluginManager *m_pluginManager;
98
99 KSettings::Dialog *m_dlg;
100
101 class Private;
102 Private *d;
103};
104
105}
106
107#endif
This class provides the interface to the Komposer core for the editor.
Definition: core.h:45
DCOP interface for mail composer window.
Definition: komposerIface.h:37
core.h
Definition: core.h:29
attachment.h
Definition: attachment.h:29