lprsettings.h
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 #ifndef LPRSETTINGS_H
00021 #define LPRSETTINGS_H
00022 
00023 #if !defined( _KDEPRINT_COMPILE ) && defined( __GNUC__ )
00024 #warning internal header, do not use except if you are a KDEPrint developer
00025 #endif
00026 
00027 #include <qobject.h>
00028 #include <kdeprint/kpreloadobject.h>
00029 
00037 class LprSettings : public QObject, public KPReloadObject
00038 {
00039 public:
00040     LprSettings(QObject *parent = 0, const char *name = 0);
00041     ~LprSettings();
00042 
00043     static LprSettings* self();
00044 
00045     enum Mode { LPR, LPRng };
00046     Mode mode() const       { return m_mode; }
00047     void setMode(Mode m)    { m_mode = m; }
00048     QString printcapFile();
00049     QString defaultRemoteHost();
00050     bool isLocalPrintcap()      { return m_local; }
00051     QString baseSpoolDir()      { return m_spooldir; }
00052 
00053 protected:
00054     void init();
00055     void reload();
00056     void configChanged();
00057 
00058 private:
00059     static LprSettings* m_self;
00060     Mode    m_mode;
00061     QString m_printcapfile;
00062     bool    m_local;
00063     QString m_spooldir;
00064     QString m_defaultremotehost;
00065 };
00066 
00067 #endif
 
This file is part of the documentation for kdeprint Library Version 3.2.0.