00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef LOCALQUEUEINTERFACE_H
00017 #define LOCALQUEUEINTERFACE_H
00018
00019 #include <globalsearch/queueinterface.h>
00020
00021 namespace GlobalSearch {
00022
00030 class LocalQueueInterface : public QueueInterface
00031 {
00032 Q_OBJECT;
00033
00034 public:
00041 explicit LocalQueueInterface(OptBase *parent,
00042 const QString &settingFile = "");
00043
00047 virtual ~LocalQueueInterface();
00048
00049 public slots:
00050
00063 virtual bool writeFiles(Structure *s,
00064 const QHash<QString, QString> &files) const;
00065
00076 virtual bool prepareForStructureUpdate(Structure *s) const;
00077
00089 virtual bool checkIfFileExists(Structure *s,
00090 const QString &filename,
00091 bool *exists);
00092
00099 virtual bool fetchFile(Structure *s,
00100 const QString &filename,
00101 QString *contents) const;
00102
00133 virtual bool grepFile(Structure *s,
00134 const QString &matchText,
00135 const QString &filename,
00136 QStringList *matches = 0,
00137 int *exitcode = 0,
00138 const bool caseSensitive = true) const;
00139 };
00140 }
00141
00142 #endif // LOCALQUEUEINTERFACE_H