summaryrefslogtreecommitdiffstats
path: root/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.h
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.h')
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.h86
1 files changed, 43 insertions, 43 deletions
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.h b/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.h
index 058444db..d948bbd4 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.h
+++ b/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.h
@@ -42,11 +42,11 @@
#ifndef _KDBSEARCH_ENGINE_
#define _KDBSEARCH_ENGINE_
-#include <qobject.h>
-#include <qptrlist.h>
-#include <qstring.h>
-#include <qmemarray.h>
-#include <qvaluelist.h>
+#include <tqobject.h>
+#include <tqptrlist.h>
+#include <tqstring.h>
+#include <tqmemarray.h>
+#include <tqvaluelist.h>
#include "database.h"
@@ -63,7 +63,7 @@
class SearchEntry
{
public:
- QString string;
+ TQString string;
int rules;
};
@@ -71,22 +71,22 @@ class KeyAndScore : public QString
{
public:
KeyAndScore();
- KeyAndScore(const QString &a,int sc);
+ KeyAndScore(const TQString &a,int sc);
int score;
};
-typedef QValueList<SearchEntry> SearchList;
+typedef TQValueList<SearchEntry> SearchList;
/* USE searchengine.h structure
class CatalogDescription
{
public:
char language[6]; // How many character chinese language needs?
- // QString is better ?
- QString filename;
- QString dateOfScan; //When you add this to database (last time)
- QString authorOfScan;
- QString fileHeader; //msgid ""
+ // TQString is better ?
+ TQString filename;
+ TQString dateOfScan; //When you add this to database (last time)
+ TQString authorOfScan;
+ TQString fileHeader; //msgid ""
};
*/
@@ -98,7 +98,7 @@ class KDBSearchEngine : public SearchEngine
public:
- KDBSearchEngine(QObject *parent=0,const char *name=0);
+ KDBSearchEngine(TQObject *parent=0,const char *name=0);
~KDBSearchEngine();
enum Rules {Equal = 1, Contains = 2, Contained = 4, RegExp = 8};
enum FormatRules { Dots = 1, Ampersand = 2, FirstWordUpper = 4, //Not yet used
@@ -108,7 +108,7 @@ public:
Set the directory where db file are located
*/
- void setDBName(QString filename);
+ void setDBName(TQString filename);
/*
Set if the research have to consider multiple spaces as a single one.
@@ -136,7 +136,7 @@ public:
*/
- void setRemoveCharString(QString chartoremove);
+ void setRemoveCharString(TQString chartoremove);
/*
Enable an output filter that format Uppercase/lowercase
@@ -179,13 +179,13 @@ public:
virtual bool messagesForFilter(const SearchFilter* filter
- , QValueList<SearchResult>& resultList, QString& error);
+ , TQValueList<SearchResult>& resultList, TQString& error);
- virtual void setLanguageCode(const QString& lang);
- virtual void setLanguage(const QString& languageCode, const QString& languageName);
+ virtual void setLanguageCode(const TQString& lang);
+ virtual void setLanguage(const TQString& languageCode, const TQString& languageName);
- virtual void setEditedFile(const QString& file);
+ virtual void setEditedFile(const TQString& file);
virtual bool isReady() const ;
virtual bool isSearching() const;
@@ -193,20 +193,20 @@ public:
virtual void saveSettings(KConfigBase *config);
virtual void readSettings(KConfigBase *config);
- virtual PrefWidget *preferencesWidget(QWidget *parent);
+ virtual PrefWidget *preferencesWidget(TQWidget *parent);
virtual const KAboutData *about() const;
- virtual QString name() const;
+ virtual TQString name() const;
- virtual QString id() const;
+ virtual TQString id() const;
- virtual QString lastError();
+ virtual TQString lastError();
- virtual QString translate(const QString& text, uint pluralForm);
+ virtual TQString translate(const TQString& text, uint pluralForm);
- virtual void stringChanged( const QStringList& orig, const QString& translated
- , const uint translationPluralForm, const QString& description);
+ virtual void stringChanged( const TQStringList& orig, const TQString& translated
+ , const uint translationPluralForm, const TQString& description);
public slots:
@@ -221,7 +221,7 @@ public slots:
progress)
*/
- int addSearchString(QString searchString, int rule=Equal);
+ int addSearchString(TQString searchString, int rule=Equal);
/*
Start the research in the database of all the string in the list
@@ -244,14 +244,14 @@ public slots:
*/
- bool startSingleSearch(QString searchString,unsigned int pattern1Limit,unsigned int pattern2Limit,
+ bool startSingleSearch(TQString searchString,unsigned int pattern1Limit,unsigned int pattern2Limit,
bool inTranslation=false);
/*
Start a search for a list of string
*/
-// bool startListSearch(QPtrList<QString> searchStrList);
+// bool startListSearch(TQPtrList<TQString> searchStrList);
/*
* Return a list of key in database that contains some
@@ -263,7 +263,7 @@ public slots:
* max is the maximum number of results
*/
-QValueList<KeyAndScore> searchWords(QString phrase,int threshold,
+TQValueList<KeyAndScore> searchWords(TQString phrase,int threshold,
int thresholdorig ,uint32 max);
@@ -272,8 +272,8 @@ QValueList<KeyAndScore> searchWords(QString phrase,int threshold,
*/
virtual void stopSearch();
- virtual bool startSearch(const QString& text, uint pluralForm, const SearchFilter* filter);
- virtual bool startSearchInTranslation(QString s);
+ virtual bool startSearch(const TQString& text, uint pluralForm, const SearchFilter* filter);
+ virtual bool startSearchInTranslation(TQString s);
void clearList();
signals:
@@ -282,13 +282,13 @@ private slots:
void updateSettings(); //Use widget settings
void setSettings(); //Fill widget with actual settings
void prefDestr();
- void setLastError(const QString&);
+ void setLastError(const TQString&);
void repeat();
private:
/*
Reload database info (and keep the dbase opened).
*/
- bool loadDatabase(QString database,bool);
+ bool loadDatabase(TQString database,bool);
bool openDb(bool);
@@ -312,22 +312,22 @@ private:
bool norm,sens,comm;
int numofresult;
char * filename;
- QString remchar;
- QString regaddchar;
- QString dbname;
+ TQString remchar;
+ TQString regaddchar;
+ TQString dbname;
bool dbOpened;
// GDBM_FILE db;
DataBaseManager * dm;
// datum key, value;
-// QMemArray<CatalogDescription *> catinfo;
+// TQMemArray<CatalogDescription *> catinfo;
SearchList searchStringList;
int totalRecord;
- QString lasterror;
- QString lang;
+ TQString lasterror;
+ TQString lang;
bool scanInProgress;
- QString edited;
+ TQString edited;
bool autoup;
- QString autoauthor;
+ TQString autoauthor;
};
#endif