Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

klwletter.h

00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Christoph                                       *
00003  *   chris@inferno.nadir.org                                               *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #ifndef KLWLETTER_H
00021 #define KLWLETTER_H
00022 
00023 #include <ktempdir.h>
00024 #include <kabc/addressbook.h>
00025 #include <kurl.h>
00026 #include <kprocess.h>
00027 #include <qstring.h>
00028 #include <qfile.h>
00029 #include <qdatetime.h>
00030 
00031 #include <qobject.h>
00032 
00036 class klwLetter : public QObject
00037 {
00038 Q_OBJECT
00039 public:
00040     klwLetter(QObject *parent = 0, const char *name = 0);
00041 
00042     ~klwLetter();
00043     void somethingChanged();
00044     QFile *letterPSfile;
00045     
00046     QString letterTo;
00047     QString letterName;
00048     QString letterStreet;
00049     QString letterCity;
00050     QString letterYourSign;
00051     QString letterMySign;
00052     QString letterYourLetterFrom;
00053     QString letterEnclosures;
00054     QString letterSubject;
00055     QString letterSalutation;
00056     QString letterRegards;
00057     QString letterText;
00058     KTempDir *letterTmpDir;
00059     QFile *letterDVIfile;
00060     QFile *letterTexfile;
00061     QFile lmlFile;
00062     bool letterTEXisUptodate;
00063     bool enclosuresOn;
00064    // bool signOn;
00065     bool yourLetterFromOn;
00066     
00067     
00068 signals:
00069     void letterPSNew(const KURL&);
00070     void letterBuildingStart();
00071     void letterBuildingEnd();
00072     void letterLetterOpened(const klwLetter*);
00073     
00074 public slots:
00075     virtual void letterSave();
00076     virtual void letterOpen();
00077     virtual void letterMakePS();
00078     virtual void letterBuildPS();
00079     virtual void letterPSReady();
00080     virtual void letterMakeTex();
00081     virtual void letterMakeDVI();
00082     virtual void letterNewTo(const QString&);
00083     virtual void letterNewName(const QString &name);
00084     virtual void letterNewStreet(const QString &street);
00085     virtual void letterNewCity(const QString &city);
00086     virtual void letterNewSalutation(const QString &salutation);
00087     virtual void letterNewRegards(const QString &regards);
00088     virtual void letterNewYourSign(const QString &yourSign);
00089     virtual void letterNewYourLetterFrom(QDate d);
00090     virtual void letterNewEnclosures(const QString &enclosures);
00091     virtual void letterNewSubject(const QString &subject);
00092     virtual void letterNewText(QString text);
00093     virtual void letterNewMySign(const QString &mySign);
00094    // virtual void letterChkSignChanged(int i);
00095     virtual void letterChkEnclosuresChanged(int i);
00096     virtual void letterChkYourLetterFromChanged(int i);
00097     
00098 };
00099 
00100 #endif

Generated on Tue Jun 8 13:04:38 2004 for kletterwizard.kdevelop by doxygen1.3