KVIrc  4.9.2
DeveloperAPIs
SlowPasteController.h
Go to the documentation of this file.
1 #ifndef _SPASTE_CONTROLLER_H_
2 #define _SPASTE_CONTROLLER_H_
3 //=============================================================================
4 //
5 // File : SlowPasteController.h
6 // Creation date : Thu Apr 30 2002 17:13:12 GMT by Juanjo Álvarez
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2002 Juanjo Álvarez (juanjux@yahoo.es)
10 // Copyright (C) 2002-2010 Szymon Stefanek (kvirc@tin.it)
11 //
12 // This program is FREE software. You can redistribute it and/or
13 // modify it under the terms of the GNU General Public License
14 // as published by the Free Software Foundation; either version 2
15 // of the License, or (at your option) any later version.
16 //
17 // This program is distributed in the HOPE that it will be USEFUL,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 // See the GNU General Public License for more details.
21 //
22 // You should have received a copy of the GNU General Public License
23 // along with this program. If not, write to the Free Software Foundation,
24 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 //
26 //=============================================================================
27 
28 #include "KviWindow.h"
29 #include "KviCString.h"
30 
31 #include <QObject>
32 #include <QStringList>
33 #include <QFile>
34 
35 class SlowPasteController : public QObject
36 {
37  Q_OBJECT
38 public:
39  SlowPasteController(KviWindow * w, int id);
41 
42  //bool pasteFileInit(KviCString * fileName);
43  bool pasteFileInit(QString & fileName);
44  bool pasteClipboardInit(void);
45  int getId(void) { return m_pId; };
46  KviWindow * window(void) { return m_pWindow; };
47  //void stop(void);
48 protected slots:
49  void pasteFile(void);
50  void pasteClipboard(void);
51 
52 private:
53  QStringList * m_pClipBuff;
54  QFile * m_pFile;
55  int m_pId;
57  QTimer * m_pTimer;
58 };
59 
60 #endif //SPASTE_CONTROLLER_H
~SlowPasteController()
Definition: SlowPasteController.cpp:49
QFile * m_pFile
Definition: SlowPasteController.h:54
bool pasteFileInit(QString &fileName)
Definition: SlowPasteController.cpp:66
int m_pId
Definition: SlowPasteController.h:55
int getId(void)
Definition: SlowPasteController.h:45
void pasteClipboard(void)
Definition: SlowPasteController.cpp:135
KviWindow * m_pWindow
Definition: SlowPasteController.h:56
Definition: SlowPasteController.h:35
KviWindow * window(void)
Definition: SlowPasteController.h:46
void pasteFile(void)
Definition: SlowPasteController.cpp:106
QTimer * m_pTimer
Definition: SlowPasteController.h:57
bool pasteClipboardInit(void)
Definition: SlowPasteController.cpp:84
Base class for all windows in KVIrc.
Definition: KviWindow.h:74
SlowPasteController(KviWindow *w, int id)
Definition: SlowPasteController.cpp:41
#define w
Definition: detector.cpp:87
Contains the KviWindow class.
QStringList * m_pClipBuff
Definition: SlowPasteController.h:53