Source: /app/hbasic/hbasic/packages/hbasic_file/hbasic_file.h
|
|
|
|
#ifndef FILE_H
#define FILE_H
#include
#include
class QFile;
class QFileInfo;
class QDir;
class QStringList;
class HBFile : public QObject
{
Q_OBJECT
public:
HBFile( void );
private:
QFile *my_file;
public slots:
void open( QString *namefile, int mode );
void close( void );
void write( QString *str );
int eof( void );
int readlong( void );
double readdbl( void );
QString *readstr( int length );
QString *readxstr( void );
QString *readline( void );
void writelong( int lpar );
void writedbl( double dpar );
void writestr( QString *file_text );
void writeline( QString *file_text );
int getbyte( void );
int getint( void );
int getlong( void );
double getdouble( void );
void putbyte( int l );
void putint( int l );
void putlong( int l );
void putdouble( double d );
void putstr( QString *str_ptr );
void putxstr( QString *str_ptr );
QString *getsave( QString *name1_ptr, QString *name2_ptr );
};
class FileDlgObject : public QFileDialog
{
Q_OBJECT
public:
FileDlgObject( void );
private:
QString *result_str;
public slots:
void show( int type );
QString getPath( void );
};
/*---------------------------------------------------------------------------- */
class HBFileInfo : public QObject
{
Q_OBJECT
public:
HBFileInfo( void );
private:
QFileInfo *my_fileinfo;
public slots:
void setfile( QString *path );
QString *path( void );
void open( char *filename );
// void mkdir( void );
// void gethome( void );
QString *basename( void );
QString *filename( void );
};
/*---------------------------------------------------------------------------- */
class HBDirInfo : public QObject
{
Q_OBJECT
public:
HBDirInfo( void );
private:
QDir *my_dirinfo;
QStringList *entries;
public slots:
void open( char *filename );
QString *getnext( void );
void setpath( QString *new_path );
QString *currentdir( void );
void setcurrent( QString *str_new_current );
QString *gethome( void );
void mkdir( QString *dir_path );
void rename( QString *old_path, QString *new_path );
void rmdir( QString *dir_path );
void remove( QString *dir_path );
QString *getfirst( QString *filename_filter );
};
/*---------------------------------------------------------------------------- */
#endif
Generated by: root on linux on Sun Jul 13 18:06:35 2003, using kdoc 2.0a54. |