diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 4aed2c8219774f5d797760606b8489a92ddc5163 (patch) | |
tree | 3f8c130f7d269626bf6a9447407ef6c35954426a /kdeprint/kdeprintfax/kdeprintfax.h | |
download | tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/kdeprintfax/kdeprintfax.h')
-rw-r--r-- | kdeprint/kdeprintfax/kdeprintfax.h | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/kdeprint/kdeprintfax/kdeprintfax.h b/kdeprint/kdeprintfax/kdeprintfax.h new file mode 100644 index 000000000..795521e82 --- /dev/null +++ b/kdeprint/kdeprintfax/kdeprintfax.h @@ -0,0 +1,115 @@ +/* + * kdeprintfax - a small fax utility + * Copyright (C) 2001 Michael Goffioul + * + * 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#ifndef KDEPRINTFAX_H +#define KDEPRINTFAX_H + +#include <kmainwindow.h> +#include <kurl.h> + +class KListBox; +class KListView; +class QLineEdit; +class QTextEdit; +class FaxCtrl; +class QCheckBox; +class QLabel; +class QTimeEdit; +class QComboBox; +class QPushButton; +class QListViewItem; + +class KdeprintFax : public KMainWindow +{ + Q_OBJECT +public: + struct FaxItem + { + QString number; + QString name; + QString enterprise; + }; + typedef QValueList<FaxItem> FaxItemList; + typedef QValueList<FaxItem>::ConstIterator FaxItemListIterator; + + KdeprintFax(QWidget *parent = 0, const char *name = 0); + ~KdeprintFax(); + + void addURL(KURL url); + void setPhone(QString phone); + void sendFax( bool quitAfterSend ); + QStringList files(); + int faxCount() const; + //QString number( int i = 0 ) const; + //QString name( int i = 0 ) const; + //QString enterprise( int i = 0 ) const; + FaxItemList faxList() const; + QString comment() const; + QString time() const; + QString subject() const; + bool cover() const; + +protected slots: + void slotToggleMenuBar(); + void slotKab(); + void slotAdd(); + void slotRemove(); + void slotFax(); + void slotAbort(); + void slotMessage(const QString&); + void slotFaxSent(bool); + void slotViewLog(); + void slotConfigure(); + void slotQuit(); + void slotView(); + void slotTimeComboActivated(int); + void slotMoveUp(); + void slotMoveDown(); + void slotCurrentChanged(); + void slotFaxSelectionChanged(); + void slotFaxRemove(); + void slotFaxAdd(); + void slotFaxExecuted( QListViewItem* ); + void slotCoverToggled(bool toggle); + +protected: + void initActions(); + void dragEnterEvent(QDragEnterEvent*); + void dropEvent(QDropEvent*); + void updateState(); + bool manualFaxDialog( QString& number, QString& name, QString& enterprise ); + //QListViewItem* faxItem( int i = 0 ) const; + +private: + KListBox *m_files; + KListView *m_numbers; + QLineEdit *m_subject; + QTextEdit *m_comment; + FaxCtrl *m_faxctrl; + QCheckBox *m_cover; + QLabel *m_msglabel; + QTimeEdit *m_time; + QComboBox *m_timecombo; + QPushButton *m_upbtn, *m_downbtn; + QPushButton *m_newbtn, *m_abbtn, *m_delbtn; + bool m_quitAfterSend; +}; + +#endif |