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

kio/kio

  • kio
  • kio
statusbarprogress.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 
19 #ifndef __statusbarprogress_h__
20 #define __statusbarprogress_h__
21 
22 #include "progressbase.h"
23 
24 class TQWidgetStack;
25 class TQBoxLayout;
26 class TQPushButton;
27 class TQLabel;
28 class KProgress;
29 
30 namespace KIO {
31 
32 class Job;
33 
60 class KIO_EXPORT StatusbarProgress : public ProgressBase {
61 
62  Q_OBJECT
63 
64 public:
65 
72  StatusbarProgress( TQWidget* parent, bool button = true );
73  ~StatusbarProgress() {}
74 
79  void setJob( KIO::Job *job );
80 
81 public slots:
82  virtual void slotClean();
83  virtual void slotTotalSize( KIO::Job* job, KIO::filesize_t size );
84  virtual void slotPercent( KIO::Job* job, unsigned long percent );
85  virtual void slotSpeed( KIO::Job* job, unsigned long speed );
86 
87 protected:
88  KProgress* m_pProgressBar;
89  TQLabel* m_pLabel;
90  TQPushButton* m_pButton;
91 
92  KIO::filesize_t m_iTotalSize;
93 
94  enum Mode { None, Label, Progress };
95 
96  uint mode;
97  bool m_bShowButton;
98 
99  void setMode();
100 
101  virtual bool eventFilter( TQObject *, TQEvent * );
102  TQBoxLayout *box;
103  TQWidgetStack *stack;
104 protected:
105  virtual void virtual_hook( int id, void* data );
106 private:
107  class StatusbarProgressPrivate* d;
108 };
109 
110 } /* namespace */
111 
112 #endif // __statusbarprogress_h__
KIO
A namespace for KIO globals.
Definition: authinfo.h:29
KIO::ProgressBase
This class does all initialization stuff for progress, like connecting signals to slots...
Definition: progressbase.h:70
KIO::filesize_t
TQ_ULLONG filesize_t
64-bit file size
Definition: global.h:39
KIO::StatusbarProgress
This is a special IO progress widget.
Definition: statusbarprogress.h:60
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. |