~ubuntu-branches/ubuntu/lucid/kdebase/lucid

« back to all changes in this revision

Viewing changes to apps/kfind/kquery.h

  • Committer: Bazaar Package Importer
  • Author(s): Roderick B. Greening
  • Date: 2009-05-13 12:21:39 UTC
  • mfrom: (1.1.26 upstream)
  • Revision ID: james.westby@ubuntu.com-20090513122139-24avbekpgnur3yew
Tags: 4:4.2.85-0ubuntu1
* New upstream release
* Remove merged/unnecessary patches
  - kubuntu_09_trash_kcm_in_dolphin.diff
  - kubuntu_11_svn954343_dolphin_prefix.diff
* Add the following patches
  - kubuntu_13_fix_phonon_include.diff - fix FTBFS in phononwidget.cpp
* Updated build dep to include kdebase-workspace-dev req by folderview
* Updated various install files
  - Removed from:
    kdebase-data.install
      usr/share/kde4/services/filetypes.desktop
      usr/share/kde4/services/useragentstrings/firefox15oncurrent.desktop
      usr/share/kde4/services/useragentstrings/mozoncurrent.desktop
      usr/share/kde4/services/useragentstrings/mozoncurrent12.desktop
      usr/share/kde4/services/useragentstrings/mozonwinxp.desktop
      usr/share/kde4/services/useragentstrings/safari12.desktop
    dolphin.install
      usr/lib/kde4/kcm_dolphin.so
      usr/lib/libdolphinprivate.so.4.2.0
      usr/share/icons/hicolor/128x128/actions/preview.png
      usr/share/icons/hicolor/16x16/actions/preview.png
      usr/share/icons/hicolor/22x22/actions/preview.png
      usr/share/icons/hicolor/32x32/actions/preview.png
      usr/share/icons/hicolor/48x48/actions/preview.png
      usr/share/icons/hicolor/64x64/actions/preview.png
      usr/share/kde4/services/kcmdolphin.desktop
    konqueror.install
      usr/lib/libkonquerorprivate.so.4.2.0
      usr/lib/kde4/konq_remoteencoding.so
      usr/share/kde4/apps/dolphinpart/kpartplugins/kremoteencodingplugin.desktop
      usr/share/kde4/apps/dolphinpart/kpartplugins/kremoteencodingplugin.rc
    libkonqsidebarplugin4.install
      usr/lib/libkonqsidebarplugin.so.4.2.0
    libkonq5.install
      usr/lib/libkonq.so.5.2.0
    kdebase-bin.install
      usr/bin/keditfiletype
      usr/lib/kde4/kcm_filetypes.so
  - Added to:
    kdebase-data.install
      usr/share/kde4/services/useragentstrings/android10.desktop
      usr/share/kde4/services/useragentstrings/chrome10onwinnt51.desktop
      usr/share/kde4/services/useragentstrings/firefox30oncurrent.desktop
      usr/share/kde4/services/useragentstrings/ie70onwinnt51.desktop
      usr/share/kde4/services/useragentstrings/op962oncurrent.desktop
      usr/share/kde4/services/useragentstrings/safari30oniphone.desktop
      usr/share/kde4/services/useragentstrings/safari32.desktop
    dolphin.install
      usr/lib/kde4/kcm_dolphingeneral.so
      usr/lib/kde4/kcm_dolphinnavigation.so
      usr/lib/kde4/kcm_dolphinservices.so
      usr/lib/kde4/kcm_dolphinviewmodes.so
      usr/lib/libdolphinprivate.so.4.3.0
      usr/share/kde4/services/kcmdolphingeneral.desktop
      usr/share/kde4/services/kcmdolphinnavigation.desktop
      usr/share/kde4/services/kcmdolphinservices.desktop
      usr/share/kde4/services/kcmdolphinviewmodes.desktop
    konqueror.install
      usr/lib/libkonquerorprivate.so.4.3.0
    libkonqsidebarplugin4.install
      usr/lib/libkonqsidebarplugin.so.4.3.0
    libkonq5.install
      usr/lib/libkonq.so.5.3.0
      usr/share/kde4/servicetypes/konqdndpopupmenuplugin.desktop
* Updated not-installed file
  - Added
    ./usr/lib/libkonsoleprivate.so

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*******************************************************************
 
2
* kquery.h
 
3
 
4
* This program is free software; you can redistribute it and/or
 
5
* modify it under the terms of the GNU General Public License as
 
6
* published by the Free Software Foundation; either version 2 of 
 
7
* the License, or (at your option) any later version.
 
8
 
9
* This program is distributed in the hope that it will be useful,
 
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
* GNU General Public License for more details.
 
13
 
14
* You should have received a copy of the GNU General Public License
 
15
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
 
17
******************************************************************/
 
18
 
1
19
#ifndef KQUERY_H
2
20
#define KQUERY_H
3
21
 
8
26
#include <QtCore/QQueue>
9
27
#include <QtCore/QList>
10
28
#include <QtCore/QDir>
 
29
#include <QtCore/QPair>
11
30
#include <QtCore/QStringList>
12
31
 
13
32
#include <kio/job.h>
24
43
  KQuery(QObject *parent = 0);
25
44
  ~KQuery();
26
45
 
 
46
    /* Functions to set Query requirements */
27
47
  void setSizeRange( int mode, KIO::filesize_t value1, KIO::filesize_t value2);
28
48
  void setTimeRange( time_t from, time_t to );
29
49
  void setRegExp( const QString &regexp, bool caseSensitive );
37
57
  void setGroupname( const QString &groupname );
38
58
  void setMetaInfo(const QString &metainfo, const QString &metainfokey);
39
59
  void setUseFileIndex(bool);
 
60
  void setShowHiddenFiles(bool);
40
61
 
41
62
  void start();
42
63
  void kill();
49
70
 public Q_SLOTS:
50
71
  /* List of files found using slocate */
51
72
  void slotListEntries(QStringList);
 
73
  
52
74
 protected Q_SLOTS:
53
75
  /* List of files found using KIO */
54
76
  void slotListEntries(KIO::Job *, const KIO::UDSEntryList &);
55
77
  void slotResult(KJob *);
56
78
  void slotCanceled(KJob *);
 
79
  
57
80
  void slotreadyReadStandardOutput();
58
81
  void slotreadyReadStandardError();
59
82
  void slotendProcessLocate(int, QProcess::ExitStatus);
60
83
 
61
84
 Q_SIGNALS:
62
 
  void addFile(const KFileItem &filename, const QString& matchingLine);
63
 
  void result(int);
 
85
    void foundFileList( QList< QPair<KFileItem,QString> >);
 
86
    void result(int);
64
87
 
65
88
 private:
66
89
  void checkEntries();
84
107
  bool m_search_binary;
85
108
  bool m_regexpForContent;
86
109
  bool m_useLocate;
 
110
  bool m_showHiddenFiles;
87
111
  QByteArray bufferLocate;
88
112
  QStringList locateList;
89
113
  KProcess *processLocate;
97
121
  QStringList ignore_mimetypes;
98
122
  QStringList ooo_mimetypes;     // OpenOffice.org mimetypes
99
123
  QStringList koffice_mimetypes;
 
124
  
 
125
  QList< QPair<KFileItem,QString> > m_foundFilesList;
100
126
};
101
127
 
102
128
#endif