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.
78 lines
2.0 KiB
78 lines
2.0 KiB
15 years ago
|
/*
|
||
|
* This file is part of the KDE libraries
|
||
13 years ago
|
* Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
|
||
15 years ago
|
*
|
||
|
* This library is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU Library General Public
|
||
|
* License version 2 as published by the Free Software Foundation.
|
||
|
*
|
||
|
* This library 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
|
||
|
* Library General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Library General Public License
|
||
|
* along with this library; see the file COPYING.LIB. If not, write to
|
||
|
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
* Boston, MA 02110-1301, USA.
|
||
|
**/
|
||
|
|
||
|
#ifndef CUPSADDSMB_H
|
||
|
#define CUPSADDSMB_H
|
||
|
|
||
15 years ago
|
#include <tqobject.h>
|
||
|
#include <tqstringlist.h>
|
||
15 years ago
|
#include <kprocess.h>
|
||
|
#include <kdialog.h>
|
||
|
|
||
15 years ago
|
class TQProgressBar;
|
||
15 years ago
|
class SidePixmap;
|
||
15 years ago
|
class TQPushButton;
|
||
|
class TQLabel;
|
||
15 years ago
|
class KActiveLabel;
|
||
15 years ago
|
class TQLineEdit;
|
||
15 years ago
|
|
||
|
class CupsAddSmb : public KDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
enum State { None, Start, MkDir, Copy, AddDriver, AddPrinter };
|
||
15 years ago
|
CupsAddSmb(TQWidget *parent = 0, const char *name = 0);
|
||
15 years ago
|
~CupsAddSmb();
|
||
|
|
||
15 years ago
|
static bool exportDest(const TQString& dest, const TQString& datadir);
|
||
15 years ago
|
|
||
|
protected slots:
|
||
|
void slotReceived(KProcess*, char*, int);
|
||
|
void doNextAction();
|
||
|
void slotProcessExited(KProcess*);
|
||
|
void slotActionClicked();
|
||
|
|
||
|
protected:
|
||
14 years ago
|
void checkActionStatus();
|
||
15 years ago
|
void nextAction();
|
||
|
bool startProcess();
|
||
|
bool doExport();
|
||
|
bool doInstall();
|
||
15 years ago
|
void showError(const TQString& msg);
|
||
15 years ago
|
|
||
|
private:
|
||
|
KProcess m_proc;
|
||
14 years ago
|
TQStringList m_buffer;
|
||
15 years ago
|
int m_state;
|
||
14 years ago
|
TQStringList m_actions;
|
||
15 years ago
|
int m_actionindex;
|
||
|
bool m_status;
|
||
14 years ago
|
TQProgressBar *m_bar;
|
||
|
TQString m_dest;
|
||
15 years ago
|
SidePixmap *m_side;
|
||
14 years ago
|
TQPushButton *m_doit, *m_cancel;
|
||
15 years ago
|
KActiveLabel *m_text;
|
||
15 years ago
|
TQLabel *m_textinfo;
|
||
|
TQLineEdit *m_logined, *m_passwded, *m_servered;
|
||
14 years ago
|
TQString m_datadir;
|
||
15 years ago
|
};
|
||
|
|
||
|
#endif
|