~ubuntu-branches/ubuntu/vivid/krusader/vivid-proposed

« back to all changes in this revision

Viewing changes to krusader/Search/krsearchmod.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-05-05 22:26:37 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505222637-ydv3cwjwy365on2r
Tags: 1:2.1.0~beta1-1ubuntu1
* Merge from Debian Unstable.  Remaining changes:
  - Retain Kubuntu doc path

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#ifndef KRSEARCHMOD_H
34
34
#define KRSEARCHMOD_H
35
35
 
36
 
#include <qobject.h>
 
36
#include <QtCore/QObject>
37
37
#include <qstack.h>
38
 
#include <qstringlist.h>
39
 
#include <qdatetime.h>
 
38
#include <QtCore/QStringList>
 
39
#include <QtCore/QDateTime>
40
40
#include <time.h>
41
41
#include <kio/global.h>
42
42
#include <kurl.h>
47
47
class KRQuery;
48
48
class ftp_vfs;
49
49
 
50
 
class KRSearchMod : public QObject  {
51
 
  Q_OBJECT
52
 
public: 
53
 
  KRSearchMod(const KRQuery *q);
54
 
  ~KRSearchMod();
55
 
 
56
 
  void scanURL( KUrl url );
57
 
  void start();
58
 
  void stop();
59
 
  
 
50
class KRSearchMod : public QObject
 
51
{
 
52
    Q_OBJECT
 
53
public:
 
54
    KRSearchMod(const KRQuery *q);
 
55
    ~KRSearchMod();
 
56
 
 
57
    void scanURL(KUrl url);
 
58
    void start();
 
59
    void stop();
 
60
 
60
61
private:
61
 
  void scanLocalDir( KUrl url );
62
 
  void scanRemoteDir( KUrl url );
 
62
    void scanLocalDir(KUrl url);
 
63
    void scanRemoteDir(KUrl url);
63
64
 
64
65
signals:
65
 
  void finished();
66
 
  void searching(const QString&);
67
 
  void found(QString what, QString where, KIO::filesize_t size, time_t mtime, QString perm, QString textFound);
 
66
    void finished();
 
67
    void searching(const QString&);
 
68
    void found(QString what, QString where, KIO::filesize_t size, time_t mtime, QString perm, QString textFound);
68
69
 
69
70
private slots:
70
 
  void slotProcessEvents( bool & stopped );
 
71
    void slotProcessEvents(bool & stopped);
71
72
 
72
73
private:
73
 
  bool stopSearch;
74
 
  QStack<KUrl> scannedUrls;
75
 
  QStack<KUrl> unScannedUrls;
76
 
  KRQuery *query;
77
 
  QStringList results;
78
 
  
79
 
  ftp_vfs *remote_vfs;
80
 
  virt_vfs *virtual_vfs;
81
 
  
82
 
  QTime timer;
 
74
    bool stopSearch;
 
75
    QStack<KUrl> scannedUrls;
 
76
    QStack<KUrl> unScannedUrls;
 
77
    KRQuery *query;
 
78
    QStringList results;
 
79
 
 
80
    ftp_vfs *remote_vfs;
 
81
    virt_vfs *virtual_vfs;
 
82
 
 
83
    QTime timer;
83
84
};
84
85
 
85
86
#endif