diff options
Diffstat (limited to 'krecipes/src/exporters/baseexporter.h')
-rw-r--r-- | krecipes/src/exporters/baseexporter.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/krecipes/src/exporters/baseexporter.h b/krecipes/src/exporters/baseexporter.h index bf909fe..112add3 100644 --- a/krecipes/src/exporters/baseexporter.h +++ b/krecipes/src/exporters/baseexporter.h @@ -12,14 +12,14 @@ #ifndef BASEEXPORTER_H #define BASEEXPORTER_H -#include <qstringlist.h> +#include <ntqstringlist.h> #include <kapplication.h> #include <kprogress.h> #include "datablocks/recipelist.h" -class QFile; +class TQFile; class KTar; @@ -28,7 +28,7 @@ class RecipeDB; class BaseExporter { public: - BaseExporter( const QString &file, const QString &ext ); + BaseExporter( const TQString &file, const TQString &ext ); virtual ~BaseExporter(); /** Subclasses must report which items it is able to work with. @@ -39,7 +39,7 @@ public: /** Export the recipes with the given ids to the file specified in the constructor. * Optionally, a progress dialog may be given to specify the progress made. */ - void exporter( const QValueList<int> &ids, RecipeDB *database, KProgressDialog * = 0 ); + void exporter( const TQValueList<int> &ids, RecipeDB *database, KProgressDialog * = 0 ); /** Convenience function for the above, which exports a single recipe. */ void exporter( int id, RecipeDB *database, KProgressDialog * = 0 ); @@ -48,17 +48,17 @@ public: * Note that this can differ somewhat from the filename passed in the * constructor. */ - QString fileName() const; + TQString fileName() const; /** Write the given recipe list to a text stream. * This can be used to export recipes without use of the database. */ - void writeStream( QTextStream &, const RecipeList & ); + void writeStream( TQTextStream &, const RecipeList & ); protected: - virtual QString createContent( const RecipeList & ) = 0; - virtual QString createFooter(){ return QString(); } - virtual QString createHeader( const RecipeList & ){ return QString(); } + virtual TQString createContent( const RecipeList & ) = 0; + virtual TQString createFooter(){ return TQString(); } + virtual TQString createHeader( const RecipeList & ){ return TQString(); } /** The number of recipes to load into memory at once. This many recipes will be * loaded from the database, processed, and then another batch of this many will be @@ -79,15 +79,15 @@ protected: * KGlobal::instance()->aboutData()->version() * This can be used by exporters to put the version of the app exporting the file. */ - QString krecipes_version() const; + TQString krecipes_version() const; private: bool createFile(); - void saveToFile( const QValueList<int> &ids, RecipeDB *database ); + void saveToFile( const TQValueList<int> &ids, RecipeDB *database ); - QFile* file; + TQFile* file; KTar *tar_file; - QString filename; + TQString filename; KProgressDialog *m_progress_dlg; bool compress; }; |