You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.1 KiB
80 lines
2.1 KiB
15 years ago
|
/***************************************************************************
|
||
|
mimeio.h - description
|
||
|
-------------------
|
||
|
begin : Wed Oct 25 2000
|
||
|
copyright : (C) 2000 by Sven Carstens
|
||
|
email : s.carstens@gmx.de
|
||
|
***************************************************************************/
|
||
|
|
||
|
/***************************************************************************
|
||
|
* *
|
||
|
* This program is free software; you can redistribute it and/or modify *
|
||
|
* it under the terms of the GNU General Public License as published by *
|
||
|
* the Free Software Foundation; either version 2 of the License, or *
|
||
|
* (at your option) any later version. *
|
||
|
* *
|
||
|
***************************************************************************/
|
||
|
|
||
|
#ifndef MIMEIO_H
|
||
|
#define MIMEIO_H
|
||
|
|
||
15 years ago
|
#include <tqcstring.h>
|
||
|
#include <tqfile.h>
|
||
15 years ago
|
|
||
|
/**
|
||
|
*@author Sven Carstens
|
||
|
*/
|
||
|
|
||
|
class mimeIO
|
||
|
{
|
||
|
public:
|
||
|
mimeIO ();
|
||
|
virtual ~ mimeIO ();
|
||
|
|
||
15 years ago
|
virtual int outputLine (const TQCString &, int len = -1);
|
||
|
virtual int outputMimeLine (const TQCString &);
|
||
|
virtual int inputLine (TQCString &);
|
||
15 years ago
|
virtual int outputChar (char);
|
||
|
virtual int inputChar (char &);
|
||
|
|
||
|
void setCRLF (const char *);
|
||
|
|
||
|
protected:
|
||
15 years ago
|
TQCString theCRLF;
|
||
15 years ago
|
int crlfLen;
|
||
|
};
|
||
|
|
||
14 years ago
|
class mimeIOTQFile:public mimeIO
|
||
15 years ago
|
{
|
||
|
public:
|
||
14 years ago
|
mimeIOTQFile (const TQString &);
|
||
|
virtual ~ mimeIOTQFile ();
|
||
15 years ago
|
virtual int outputLine (const TQCString &, int len = -1);
|
||
|
virtual int inputLine (TQCString &);
|
||
15 years ago
|
|
||
|
protected:
|
||
15 years ago
|
TQFile myFile;
|
||
15 years ago
|
};
|
||
|
|
||
14 years ago
|
class mimeIOTQString:public mimeIO
|
||
15 years ago
|
{
|
||
|
public:
|
||
14 years ago
|
mimeIOTQString ();
|
||
|
virtual ~ mimeIOTQString ();
|
||
15 years ago
|
virtual int outputLine (const TQCString &, int len = -1);
|
||
|
virtual int inputLine (TQCString &);
|
||
|
const TQString& getString () const
|
||
15 years ago
|
{
|
||
|
return theString;
|
||
|
}
|
||
15 years ago
|
void setString (const TQString & _str)
|
||
15 years ago
|
{
|
||
|
theString = _str;
|
||
|
}
|
||
|
|
||
|
protected:
|
||
15 years ago
|
TQString theString;
|
||
15 years ago
|
};
|
||
|
|
||
|
#endif
|