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

kio/kio

statusbarprogress.h
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2000 Matej Koss <koss@miesto.sk>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #ifndef __statusbarprogress_h__
00020 #define __statusbarprogress_h__
00021 
00022 #include "progressbase.h"
00023 
00024 class TQWidgetStack;
00025 class TQBoxLayout;
00026 class TQPushButton;
00027 class TQLabel;
00028 class KProgress;
00029 
00030 namespace KIO {
00031 
00032 class Job;
00033 
00060 class KIO_EXPORT StatusbarProgress : public ProgressBase {
00061 
00062   Q_OBJECT
00063 
00064 public:
00065 
00072   StatusbarProgress( TQWidget* parent, bool button = true );
00073   ~StatusbarProgress() {}
00074 
00079   void setJob( KIO::Job *job );
00080 
00081 public slots:
00082   virtual void slotClean();
00083   virtual void slotTotalSize( KIO::Job* job, KIO::filesize_t size );
00084   virtual void slotPercent( KIO::Job* job, unsigned long percent );
00085   virtual void slotSpeed( KIO::Job* job, unsigned long speed );
00086 
00087 protected:
00088   KProgress* m_pProgressBar;
00089   TQLabel* m_pLabel;
00090   TQPushButton* m_pButton;
00091 
00092   KIO::filesize_t m_iTotalSize;
00093 
00094   enum Mode { None, Label, Progress };
00095 
00096   uint mode;
00097   bool m_bShowButton;
00098 
00099   void setMode();
00100 
00101   virtual bool eventFilter( TQObject *, TQEvent * );
00102   TQBoxLayout *box;
00103   TQWidgetStack *stack;
00104 protected:
00105   virtual void virtual_hook( int id, void* data );
00106 private:
00107   class StatusbarProgressPrivate* d;
00108 };
00109 
00110 } /* namespace */
00111 
00112 #endif  //  __statusbarprogress_h__

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.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |