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

tdeprint

  • tdeprint
  • management
kmjobviewer.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 KMJOBVIEWER_H
21#define KMJOBVIEWER_H
22
23#if !defined( _TDEPRINT_COMPILE ) && defined( __GNUC__ )
24#warning internal header, do not use except if you are a TDEPrint developer
25#endif
26
27#include <tdemainwindow.h>
28#include "kmprinterpage.h"
29#include "kpreloadobject.h"
30
31class KMJobManager;
32class KMJob;
33class TDEListView;
34class JobItem;
35class TQPopupMenu;
36class TQListViewItem;
37class KMPrinter;
38class TQTimer;
39class TQLineEdit;
40class TQCheckBox;
41
49class TDEPRINT_EXPORT KMJobViewer : public TDEMainWindow, public KMPrinterPage, public KPReloadObject
50{
51 TQ_OBJECT
52public:
53 KMJobViewer(TQWidget *parent = 0, const char *name = 0);
54 ~KMJobViewer();
55
56 void setPrinter(const TQString& prname);
57 void setPrinter(KMPrinter *p);
58 void refresh(bool reload = false);
59 TQString printer() const;
60 bool isSticky() const;
61
62signals:
63 void jobsShown(KMJobViewer*, bool hasJobs);
64 void refreshClicked();
65 void printerChanged(KMJobViewer*, const TQString& prname);
66 void viewerDestroyed(KMJobViewer*);
67
68public slots:
69 void pluginActionActivated(int);
70
71protected slots:
72 void slotSelectionChanged();
73 void slotHold();
74 void slotResume();
75 void slotRemove();
76 void slotRestart();
77 void slotRightClicked(TQListViewItem*,const TQPoint&,int);
78 void slotMove(int prID);
79 void slotPrinterSelected(int);
80 void slotShowCompleted(bool);
81 void slotRefresh();
82 void slotClose();
83 void slotShowMoveMenu();
84 void slotShowPrinterMenu();
85 void slotUserOnly(bool);
86 void slotUserChanged();
87 void slotConfigure();
88 void slotDropped( TQDropEvent*, TQListViewItem* );
89 void slotKeepWindowChange(bool);
90 void slotPrinterListUpdated();
91
92protected:
93 void init();
94 void updateJobs();
95 void initActions();
96 JobItem* findItem(const TQString& uri);
97 void jobSelection(TQPtrList<KMJob>& l);
98 void send(int cmd, const TQString& name, const TQString& arg = TQString::null);
99 void loadPrinters();
100 void loadPluginActions();
101 void removePluginActions();
102 void reload();
103 //void aboutToReload();
104 void closeEvent(TQCloseEvent*);
105 void triggerRefresh();
106 void addToManager();
107 void removeFromManager();
108 void buildPrinterMenu(TQPopupMenu *menu, bool use_all = false, bool use_specials = false);
109 void updateCaption();
110 void updateStatusBar();
111
112private:
113 TDEListView *m_view;
114 TQPtrList<KMJob> m_jobs;
115 TQPtrList<JobItem> m_items;
116 TQPopupMenu *m_pop;
117 TQPtrList<KMPrinter> m_printers;
118 TQString m_prname;
119 int m_type;
120 TQString m_username;
121 TQLineEdit *m_userfield;
122 TQCheckBox *m_stickybox;
123 bool m_standalone;
124};
125
126inline TQString KMJobViewer::printer() const
127{ return m_prname; }
128
129#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.4
This website is maintained by Timothy Pearson.