• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeprint
 

tdeprint

  • tdeprint
  • cups
cupsaddsmb2.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License version 2 as published by the Free Software Foundation.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public License
15  * along with this library; see the file COPYING.LIB. If not, write to
16  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  **/
19 
20 #ifndef CUPSADDSMB_H
21 #define CUPSADDSMB_H
22 
23 #include <tqobject.h>
24 #include <tqstringlist.h>
25 #include <tdeprocess.h>
26 #include <kdialog.h>
27 
28 class TQProgressBar;
29 class SidePixmap;
30 class TQPushButton;
31 class TQLabel;
32 class KActiveLabel;
33 class TQLineEdit;
34 
35 class CupsAddSmb : public KDialog
36 {
37  TQ_OBJECT
38 
39 public:
40  enum State { None, Start, MkDir, Copy, AddDriver, AddPrinter };
41  CupsAddSmb(TQWidget *parent = 0, const char *name = 0);
42  ~CupsAddSmb();
43 
44  static bool exportDest(const TQString& dest, const TQString& datadir);
45 
46 protected slots:
47  void slotReceived(TDEProcess*, char*, int);
48  void doNextAction();
49  void slotProcessExited(TDEProcess*);
50  void slotActionClicked();
51 
52 protected:
53  void checkActionStatus();
54  void nextAction();
55  bool startProcess();
56  bool doExport();
57  bool doInstall();
58  void showError(const TQString& msg);
59 
60 private:
61  TDEProcess m_proc;
62  TQStringList m_buffer;
63  int m_state;
64  TQStringList m_actions;
65  int m_actionindex;
66  bool m_status;
67  TQProgressBar *m_bar;
68  TQString m_dest;
69  SidePixmap *m_side;
70  TQPushButton *m_doit, *m_cancel;
71  KActiveLabel *m_text;
72  TQLabel *m_textinfo;
73  TQLineEdit *m_logined, *m_passwded, *m_servered;
74  TQString m_datadir;
75 };
76 
77 #endif

tdeprint

Skip menu "tdeprint"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeprint

Skip menu "tdeprint"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeprint by doxygen 1.9.1
This website is maintained by Timothy Pearson.