KVIrc 5.2.4
Developer APIs
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
35class SlowPasteController : public QObject
36{
37 Q_OBJECT
38public:
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);
48protected slots:
49 void pasteFile(void);
50 void pasteClipboard(void);
51
52private:
53 QStringList * m_pClipBuff;
54 QFile * m_pFile;
55 int m_pId;
57 QTimer * m_pTimer;
58};
59
60#endif //SPASTE_CONTROLLER_H
Contains the KviWindow class.
Base class for all windows in KVIrc.
Definition KviWindow.h:75
Definition SlowPasteController.h:36
void pasteClipboard(void)
Definition SlowPasteController.cpp:135
KviWindow * window(void)
Definition SlowPasteController.h:46
int m_pId
Definition SlowPasteController.h:55
int getId(void)
Definition SlowPasteController.h:45
bool pasteFileInit(QString &fileName)
Definition SlowPasteController.cpp:66
void pasteFile(void)
Definition SlowPasteController.cpp:106
QTimer * m_pTimer
Definition SlowPasteController.h:57
~SlowPasteController()
Definition SlowPasteController.cpp:49
bool pasteClipboardInit(void)
Definition SlowPasteController.cpp:84
QStringList * m_pClipBuff
Definition SlowPasteController.h:53
QFile * m_pFile
Definition SlowPasteController.h:54
KviWindow * m_pWindow
Definition SlowPasteController.h:56
#define w
Definition detector.cpp:88