You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
2.0 KiB
89 lines
2.0 KiB
15 years ago
|
/*
|
||
|
* This file is part of the KDE libraries
|
||
13 years ago
|
* Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
|
||
15 years ago
|
*
|
||
|
* This library is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU Library General Public
|
||
|
* License version 2 as published by the Free Software Foundation.
|
||
|
*
|
||
|
* This library is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
* Library General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Library General Public License
|
||
|
* along with this library; see the file COPYING.LIB. If not, write to
|
||
|
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
* Boston, MA 02110-1301, USA.
|
||
|
**/
|
||
|
|
||
|
#ifndef CUPSINFOS_H
|
||
|
#define CUPSINFOS_H
|
||
|
|
||
15 years ago
|
#include <tqstring.h>
|
||
15 years ago
|
#include "kpreloadobject.h"
|
||
|
|
||
|
class CupsInfos : public KPReloadObject
|
||
|
{
|
||
|
public:
|
||
|
static CupsInfos* self();
|
||
|
|
||
|
CupsInfos();
|
||
|
~CupsInfos();
|
||
|
|
||
15 years ago
|
const TQString& host() const;
|
||
|
TQString hostaddr() const;
|
||
15 years ago
|
int port() const;
|
||
15 years ago
|
const TQString& login() const;
|
||
|
const TQString& password() const;
|
||
|
const TQString& realLogin() const;
|
||
15 years ago
|
bool savePassword() const;
|
||
|
|
||
15 years ago
|
void setHost(const TQString& s);
|
||
15 years ago
|
void setPort(int p);
|
||
15 years ago
|
void setLogin(const TQString& s);
|
||
|
void setPassword(const TQString& s);
|
||
15 years ago
|
void setSavePassword( bool on );
|
||
|
|
||
|
const char* getPasswordCB();
|
||
|
|
||
|
void load();
|
||
|
void save();
|
||
|
|
||
|
protected:
|
||
|
void reload();
|
||
|
void configChanged();
|
||
|
|
||
|
private:
|
||
|
static CupsInfos *unique_;
|
||
|
|
||
14 years ago
|
TQString host_;
|
||
15 years ago
|
int port_;
|
||
14 years ago
|
TQString login_;
|
||
|
TQString password_;
|
||
|
TQString reallogin_;
|
||
15 years ago
|
bool savepwd_;
|
||
|
|
||
|
int count_;
|
||
|
};
|
||
|
|
||
15 years ago
|
inline const TQString& CupsInfos::host() const
|
||
15 years ago
|
{ return host_; }
|
||
|
|
||
|
inline int CupsInfos::port() const
|
||
|
{ return port_; }
|
||
|
|
||
15 years ago
|
inline const TQString& CupsInfos::login() const
|
||
15 years ago
|
{ return login_; }
|
||
|
|
||
15 years ago
|
inline const TQString& CupsInfos::password() const
|
||
15 years ago
|
{ return password_; }
|
||
|
|
||
15 years ago
|
inline const TQString& CupsInfos::realLogin() const
|
||
15 years ago
|
{ return reallogin_; }
|
||
|
|
||
|
inline bool CupsInfos::savePassword() const
|
||
|
{ return savepwd_; }
|
||
|
|
||
|
#endif
|