summaryrefslogtreecommitdiffstats
path: root/ksquirrel/ksquirrelpart/sq_diroperator.h
blob: 2c2106c1393f710476f5f8f6fb83b18f0e574175 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/***************************************************************************
                          sq_diroperator.h  -  description
                             -------------------
    begin                : Thu Nov 29 2007
    copyright            : (C) 2007 by Baryshev Dmitry
    email                : ksquirrel.iv@gmail.com
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef SQ_DIROPERATOR_H
#define SQ_DIROPERATOR_H

#include <kfileitem.h>

#include <tqobject.h>

class SQ_Downloader;

class KURL;

class SQ_DirOperator : public TQObject
{
    Q_OBJECT
  TQ_OBJECT

    public:
        SQ_DirOperator(TQObject *tqparent = 0);
        ~SQ_DirOperator();

        static SQ_DirOperator* instance() { return m_inst; }

        void execute(KFileItem *item);

        void del(const KURL &u, TQWidget *tqparent = 0);

    private:
        void executePrivate(KFileItem *);

    private slots:

        void slotDownloadPercents(int);
        void slotDownloaderResult(const KURL &);

    private:
        SQ_Downloader *down;

        static SQ_DirOperator *m_inst;
};

#endif