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

tdeio/tdeio

  • tdeio
  • tdeio
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
24class TQWidgetStack;
25class TQBoxLayout;
26class TQPushButton;
27class TQLabel;
28class KProgress;
29
30namespace TDEIO {
31
32class Job;
33
60class TDEIO_EXPORT StatusbarProgress : public ProgressBase {
61
62 TQ_OBJECT
63
64public:
65
72 StatusbarProgress( TQWidget* parent, bool button = true );
73 ~StatusbarProgress() {}
74
79 void setJob( TDEIO::Job *job );
80
81public slots:
82 virtual void slotClean();
83 virtual void slotTotalSize( TDEIO::Job* job, TDEIO::filesize_t size );
84 virtual void slotPercent( TDEIO::Job* job, unsigned long percent );
85 virtual void slotSpeed( TDEIO::Job* job, unsigned long speed );
86
87protected:
88 KProgress* m_pProgressBar;
89 TQLabel* m_pLabel;
90 TQPushButton* m_pButton;
91
92 TDEIO::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;
104protected:
105 virtual void virtual_hook( int id, void* data );
106private:
107 class StatusbarProgressPrivate* d;
108};
109
110} /* namespace */
111
112#endif // __statusbarprogress_h__
TDEIO::Job
The base class for all jobs.
Definition jobclasses.h:67
TDEIO::ProgressBase
This class does all initialization stuff for progress, like connecting signals to slots.
Definition progressbase.h:70
TDEIO::StatusbarProgress
This is a special IO progress widget.
Definition statusbarprogress.h:60
TDEIO
A namespace for TDEIO globals.
Definition authinfo.h:29
TDEIO::filesize_t
TQ_ULLONG filesize_t
64-bit file size
Definition global.h:39

tdeio/tdeio

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

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • 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 tdeio/tdeio by doxygen 1.9.8
This website is maintained by Timothy Pearson.