konsolekalendar

KCal::KonsoleKalendarExports Class Reference

#include <konsolekalendarexports.h>

Public Member Functions

 KonsoleKalendarExports (KonsoleKalendarVariables *vars=0)
 
 ~KonsoleKalendarExports ()
 
bool exportAsTxt (TQTextStream *ts, Event *event, TQDate date)
 
bool exportAsTxtShort (TQTextStream *ts, Event *event, TQDate date, bool sameday)
 
bool exportAsCSV (TQTextStream *ts, Event *event, TQDate date)
 

Detailed Description

Class to manage the Export functionality.

Author
Tuukka Pasanen
Allen Winter

Definition at line 47 of file konsolekalendarexports.h.

Constructor & Destructor Documentation

◆ KonsoleKalendarExports()

KonsoleKalendarExports::KonsoleKalendarExports ( KonsoleKalendarVariables vars = 0)

Constructs a KonsoleKalendarChange object from command line arguments.

Parameters
varsis a KonsoleKalendarVariable object with Event information.

Definition at line 50 of file konsolekalendarexports.cpp.

◆ ~KonsoleKalendarExports()

KonsoleKalendarExports::~KonsoleKalendarExports ( )

Destructor.

Definition at line 57 of file konsolekalendarexports.cpp.

Member Function Documentation

◆ exportAsCSV()

bool KonsoleKalendarExports::exportAsCSV ( TQTextStream *  ts,
Event *  event,
TQDate  date 
)

Export the Event in Comma-Separated Values (CSV) Mode.

Parameters
tspointer to the output TQTextStream.
eventpointer to the Event to export.
dateis the TQDate to be exported for.

Definition at line 213 of file konsolekalendarexports.cpp.

◆ exportAsTxt()

bool KonsoleKalendarExports::exportAsTxt ( TQTextStream *  ts,
Event *  event,
TQDate  date 
)

Export the Event in Text Mode.

Parameters
tspointer to the output TQTextStream.
eventpointer to the Event to export.
dateis the TQDate to be exported for.

Definition at line 61 of file konsolekalendarexports.cpp.

◆ exportAsTxtShort()

bool KonsoleKalendarExports::exportAsTxtShort ( TQTextStream *  ts,
Event *  event,
TQDate  date,
bool  sameday 
)

Export the Event in Short Text Mode.

Parameters
tspointer to the output TQTextStream.
eventpointer to the Event to export.
dateis the TQDate to be exported for.
samedayflags that this Event is on the same date as the previously exported Event.

Definition at line 147 of file konsolekalendarexports.cpp.


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