• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/kio
 

kio/kio

  • kio
  • kio
defaultprogress.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2000 Matej Koss <koss@miesto.sk>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 #ifndef __defaultprogress_h__
19 #define __defaultprogress_h__
20 
21 #include <tqlabel.h>
22 
23 #include <kio/global.h>
24 
25 #include <kprogress.h>
26 
27 #include "progressbase.h"
28 
29 class KLineEdit;
30 
31 namespace KIO {
32 
33 /*
34  * A default implementation of the progress dialog ProgressBase.
35  * ProgressBase
36  */
37 class KIO_EXPORT DefaultProgress : public ProgressBase {
38 
39  Q_OBJECT
40 
41 public:
47  DefaultProgress( bool showNow = true );
54  DefaultProgress( TQWidget* parent, const char* name = 0 );
55  ~DefaultProgress();
56 
57  bool keepOpen() const;
58 
60  static TQString makePercentString( unsigned long percent,
61  KIO::filesize_t totalSize,
62  unsigned long totalFiles );
63 
64 public slots:
65  virtual void slotTotalSize( KIO::Job *job, KIO::filesize_t size );
66  virtual void slotTotalFiles( KIO::Job *job, unsigned long files );
67  virtual void slotTotalDirs( KIO::Job *job, unsigned long dirs );
68 
69  virtual void slotProcessedSize( KIO::Job *job, KIO::filesize_t bytes );
70  virtual void slotProcessedFiles( KIO::Job *job, unsigned long files );
71  virtual void slotProcessedDirs( KIO::Job *job, unsigned long dirs );
72 
73  virtual void slotSpeed( KIO::Job *job, unsigned long speed );
74  virtual void slotPercent( KIO::Job *job, unsigned long percent );
80  virtual void slotInfoMessage( KIO::Job *job, const TQString & msg );
81 
82  virtual void slotCopying( KIO::Job* job, const KURL& src, const KURL& dest );
83  virtual void slotMoving( KIO::Job* job, const KURL& src, const KURL& dest );
84  virtual void slotDeleting( KIO::Job* job, const KURL& url );
91  void slotTransferring( KIO::Job* job, const KURL& url );
92  virtual void slotCreatingDir( KIO::Job* job, const KURL& dir );
99  virtual void slotStating( KIO::Job* job, const KURL& dir );
106  virtual void slotMounting( KIO::Job* job, const TQString & dev, const TQString & point );
112  virtual void slotUnmounting( KIO::Job* job, const TQString & point );
113  virtual void slotCanResume( KIO::Job* job, KIO::filesize_t from);
114 
119  void slotClean();
120 
121 protected:
123  void init();
124  void showTotals();
125  void setDestVisible( bool visible );
127  void checkDestination( const KURL& dest);
128 
129  KLineEdit* sourceEdit;
130  KLineEdit* destEdit;
131  TQLabel* progressLabel;
132  TQLabel* destInvite;
133  TQLabel* speedLabel;
134  TQLabel* sizeLabel;
135  TQLabel* resumeLabel;
136 
137  KProgress* m_pProgressBar;
138 
139  KIO::filesize_t m_iTotalSize;
140  unsigned long m_iTotalFiles;
141  unsigned long m_iTotalDirs;
142 
143  KIO::filesize_t m_iProcessedSize;
144  unsigned long m_iProcessedDirs;
145  unsigned long m_iProcessedFiles;
146 
147  enum ModeType { Copy, Move, Delete, Create, Done };
148  ModeType mode;
149 
150 protected:
151  virtual void virtual_hook( int id, void* data );
152 private:
153  class DefaultProgressPrivate;
154  DefaultProgressPrivate* d;
155 private slots:
156  void slotKeepOpenToggled(bool);
157  void slotOpenFile();
158  void slotOpenLocation();
159 };
160 
161 } /* namespace */
162 
163 #endif // __defaultprogress_h__
164 
KIO
A namespace for KIO globals.
Definition: authinfo.h:29
KIO::filesize_t
TQ_ULLONG filesize_t
64-bit file size
Definition: global.h:39
KIO::Job
The base class for all jobs.
Definition: jobclasses.h:68

kio/kio

Skip menu "kio/kio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kio/kio

Skip menu "kio/kio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/kio by doxygen 1.8.13
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |