summaryrefslogtreecommitdiffstats
path: root/kio/kpasswdserver/kpasswdserver.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 01:04:16 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 01:04:16 -0600
commit5159cd2beb2e87806a5b54e9991b7895285c9d3e (patch)
tree9b70e8be47a390f8f4d56ead812ab0c9dad88709 /kio/kpasswdserver/kpasswdserver.h
parentc17cb900dcf52b8bd6dc300d4f103392900ec2b4 (diff)
downloadtdelibs-5159cd2beb2e87806a5b54e9991b7895285c9d3e.tar.gz
tdelibs-5159cd2beb2e87806a5b54e9991b7895285c9d3e.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'kio/kpasswdserver/kpasswdserver.h')
-rw-r--r--kio/kpasswdserver/kpasswdserver.h118
1 files changed, 0 insertions, 118 deletions
diff --git a/kio/kpasswdserver/kpasswdserver.h b/kio/kpasswdserver/kpasswdserver.h
deleted file mode 100644
index 46e7191db..000000000
--- a/kio/kpasswdserver/kpasswdserver.h
+++ /dev/null
@@ -1,118 +0,0 @@
-/*
- This file is part of the KDE Password Server
-
- Copyright (C) 2002 Waldo Bastian (bastian@kde.org)
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- version 2 as published by the Free Software Foundation.
-
- This software 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
- General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this library; see the file COPYING. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-//----------------------------------------------------------------------------
-//
-// KDE Password Server
-// $Id$
-
-#ifndef KPASSWDSERVER_H
-#define KPASSWDSERVER_H
-
-#include <tqdict.h>
-#include <tqintdict.h>
-
-#include <dcopclient.h>
-#include <kio/authinfo.h>
-#include <kded/kdedmodule.h>
-
-namespace KWallet {
- class Wallet;
-}
-
-class KPasswdServer : public KDEDModule
-{
- Q_OBJECT
- K_DCOP
-public:
- KPasswdServer(const TQCString &);
- ~KPasswdServer();
-
-k_dcop:
- // KDE4 merge
- TDEIO::AuthInfo checkAuthInfo(TDEIO::AuthInfo, long, unsigned long);
- TDEIO::AuthInfo checkAuthInfo(TDEIO::AuthInfo, long);
- TDEIO::AuthInfo queryAuthInfo(TDEIO::AuthInfo, TQString, long, long, unsigned long);
- TDEIO::AuthInfo queryAuthInfo(TDEIO::AuthInfo, TQString, long, long);
- void addAuthInfo(TDEIO::AuthInfo, long);
-
-public slots:
- void processRequest();
- // Remove all authentication info associated with windowId
- void removeAuthForWindowId(long windowId);
-
-protected:
- struct AuthInfo;
-
- TQString createCacheKey( const TDEIO::AuthInfo &info );
- const AuthInfo *findAuthInfoItem(const TQString &key, const TDEIO::AuthInfo &info);
- void removeAuthInfoItem(const TQString &key, const TDEIO::AuthInfo &info);
- void addAuthInfoItem(const TQString &key, const TDEIO::AuthInfo &info, long windowId, long seqNr, bool canceled);
- TDEIO::AuthInfo copyAuthInfo(const AuthInfo *);
- void updateAuthExpire(const TQString &key, const AuthInfo *, long windowId, bool keep);
- int findWalletEntry( const TQMap<TQString,TQString>& map, const TQString& username );
- bool openWallet( WId windowId );
-
- struct AuthInfo {
- AuthInfo() { expire = expNever; isCanceled = false; seqNr = 0; }
-
- KURL url;
- TQString directory;
- TQString username;
- TQString password;
- TQString realmValue;
- TQString digestInfo;
-
- enum { expNever, expWindowClose, expTime } expire;
- TQValueList<long> windowList;
- unsigned long expireTime;
- long seqNr;
-
- bool isCanceled;
- };
-
- class AuthInfoList : public TQPtrList<AuthInfo>
- {
- public:
- AuthInfoList() { setAutoDelete(true); }
- int compareItems(TQPtrCollection::Item n1, TQPtrCollection::Item n2);
- };
-
- TQDict< AuthInfoList > m_authDict;
-
- struct Request {
- DCOPClient *client;
- DCOPClientTransaction *transaction;
- TQString key;
- TDEIO::AuthInfo info;
- TQString errorMsg;
- long windowId;
- long seqNr;
- bool prompt;
- };
-
- TQPtrList< Request > m_authPending;
- TQPtrList< Request > m_authWait;
- TQIntDict<TQStringList> mWindowIdList;
- DCOPClient *m_dcopClient;
- KWallet::Wallet* m_wallet;
- long m_seqNr;
-};
-
-#endif