Qt 4.8
Public Functions | Public Variables | List of all members
QOutputStrategy Class Referenceabstract
Inheritance diagram for QOutputStrategy:
QXmlStreamStrategy QZipStreamStrategy

Public Functions

virtual void addFile (const QString &fileName, const QString &mimeType, const QByteArray &bytes)=0
 
QString createUniqueImageName ()
 
 QOutputStrategy ()
 
virtual ~QOutputStrategy ()
 

Public Variables

QIODevicecontentStream
 
int counter
 

Detailed Description

Definition at line 72 of file qtextodfwriter.cpp.

Constructors and Destructors

◆ QOutputStrategy()

QOutputStrategy::QOutputStrategy ( )
inline

Definition at line 74 of file qtextodfwriter.cpp.

74 : contentStream(0), counter(1) { }
QIODevice * contentStream

◆ ~QOutputStrategy()

virtual QOutputStrategy::~QOutputStrategy ( )
inlinevirtual

Definition at line 75 of file qtextodfwriter.cpp.

75 {}

Functions

◆ addFile()

virtual void QOutputStrategy::addFile ( const QString fileName,
const QString mimeType,
const QByteArray bytes 
)
pure virtual

◆ createUniqueImageName()

QString QOutputStrategy::createUniqueImageName ( )
inline

Definition at line 78 of file qtextodfwriter.cpp.

79  {
80  return QString::fromLatin1("Pictures/Picture%1").arg(counter++);
81  }
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
Definition: qstring.cpp:7186
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Definition: qstring.cpp:4188

Properties

◆ contentStream

QIODevice* QOutputStrategy::contentStream

◆ counter

int QOutputStrategy::counter

Definition at line 84 of file qtextodfwriter.cpp.

Referenced by createUniqueImageName().


The documentation for this class was generated from the following file: