• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

kwalletdadaptor.h

Go to the documentation of this file.
00001 /*
00002   This file is part of the KDE libraries
00003 
00004   Copyright (c) 2006 Thiago Macieira <thiago@kde.org>
00005 
00006   This library is free software; you can redistribute it and/or
00007   modify it under the terms of the GNU Library General Public
00008   License as published by the Free Software Foundation; either
00009   version 2 of the License, or (at your option) any later version.
00010 
00011   This library is distributed in the hope that it will be useful,
00012   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014   Library General Public License for more details.
00015 
00016   You should have received a copy of the GNU Library General Public License
00017   along with this library; see the file COPYING.LIB.  If not, write to
00018   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019   Boston, MA 02110-1301, USA.
00020 
00021 */
00022 
00023 #ifndef _KWALLETDADAPTOR_H_
00024 #define _KWALLETDADAPTOR_H_
00025 
00026 #include <QtDBus/QtDBus>
00027 
00028 class KWalletDAdaptor: public QDBusAbstractAdaptor
00029 {
00030     Q_OBJECT
00031     Q_CLASSINFO("D-Bus Interface", "org.kde.KWallet")
00032     KWalletD *parent;
00033 public:
00034     inline KWalletDAdaptor(KWalletD *p)
00035         : QDBusAbstractAdaptor(p), parent(p)
00036         { setAutoRelaySignals(true); }
00037 
00038 public Q_SLOTS:
00039     // Is the wallet enabled?  If not, all open() calls fail.
00040     inline bool isEnabled() const
00041         { return parent->isEnabled(); }
00042 
00043     // Open and unlock the wallet
00044     inline int open(const QString& wallet, qlonglong wId, const QString& appid, const QDBusMessage& msg)
00045         { return parent->open(wallet, wId, appid, msg); }
00046 
00047     // Open and unlock the wallet with this path
00048     inline int openPath(const QString& path, qlonglong wId, const QString& appid)
00049         { return parent->openPath(path, wId, appid); }
00050 
00051     // disabled -thiago
00052     //virtual void openAsynchronous(const QString& wallet, const QByteArray& returnObject, uint wId);
00053 
00054     // Close and lock the wallet
00055     // If force = true, will close it for all users.  Behave.  This
00056     // can break applications, and is generally intended for use by
00057     // the wallet manager app only.
00058     inline int close(const QString& wallet, bool force)
00059         { return parent->close(wallet, force); }
00060     inline int close(int handle, bool force, const QString& appid)
00061         { return parent->close(handle, force, appid); }
00062 
00063     // Save to disk but leave open
00064     inline Q_NOREPLY void sync(int handle, const QString& appid)
00065         { parent->sync(handle, appid); }
00066 
00067     // Physically deletes the wallet from disk.
00068     inline int deleteWallet(const QString& wallet)
00069         { return parent->deleteWallet(wallet); }
00070 
00071     // Returns true if the wallet is open
00072     inline bool isOpen(const QString& wallet)
00073         { return parent->isOpen(wallet); }
00074     inline bool isOpen(int handle)
00075         { return parent->isOpen(handle); }
00076 
00077     // List the users of this wallet
00078     inline QStringList users(const QString& wallet) const
00079         { return parent->users(wallet); }
00080 
00081     // Change the password of this wallet
00082     inline void changePassword(const QString& wallet, qlonglong wId, const QString& appid, const QDBusMessage& msg)
00083         { parent->changePassword(wallet, wId, appid, msg); }
00084 
00085     // A list of all wallets
00086     inline QStringList wallets() const
00087         { return parent->wallets(); }
00088 
00089     // A list of all folders in this wallet
00090     inline QStringList folderList(int handle, const QString& appid)
00091         { return parent->folderList(handle, appid); }
00092 
00093     // Does this wallet have this folder?
00094     inline bool hasFolder(int handle, const QString& folder, const QString& appid)
00095         { return parent->hasFolder(handle, folder, appid); }
00096 
00097     // Create this folder
00098     inline bool createFolder(int handle, const QString& folder, const QString& appid)
00099         { return parent->createFolder(handle, folder, appid); }
00100 
00101     // Remove this folder
00102     inline bool removeFolder(int handle, const QString& folder, const QString& appid)
00103         { return parent->removeFolder(handle, folder, appid); }
00104 
00105     // List of entries in this folder
00106     inline QStringList entryList(int handle, const QString& folder, const QString& appid)
00107         { return parent->entryList(handle, folder, appid); }
00108 
00109     // Read an entry.  If the entry does not exist, it just
00110     // returns an empty result.  It is your responsibility to check
00111     // hasEntry() first.
00112     inline QByteArray readEntry(int handle, const QString& folder, const QString& key, const QString& appid)
00113         { return parent->readEntry(handle, folder, key, appid); }
00114     inline QByteArray readMap(int handle, const QString& folder, const QString& key, const QString& appid)
00115         { return parent->readMap(handle, folder, key, appid); }
00116     inline QString readPassword(int handle, const QString& folder, const QString& key, const QString& appid)
00117         { return parent->readPassword(handle, folder, key, appid); }
00118     inline QVariantMap readEntryList(int handle, const QString& folder, const QString& key, const QString& appid)
00119         { return parent->readEntryList(handle, folder, key, appid); }
00120     inline QVariantMap readMapList(int handle, const QString& folder, const QString& key, const QString& appid)
00121         { return parent->readMapList(handle, folder, key, appid); }
00122     inline QVariantMap readPasswordList(int handle, const QString& folder, const QString& key, const QString& appid)
00123         { return parent->readPasswordList(handle, folder, key, appid); }
00124 
00125     // Rename an entry.  rc=0 on success.
00126     inline int renameEntry(int handle, const QString& folder, const QString& oldName, const QString& newName, const QString& appid)
00127         { return parent->renameEntry(handle, folder, oldName, newName, appid); }
00128 
00129     // Write an entry.  rc=0 on success.
00130     inline int writeEntry(int handle, const QString& folder, const QString& key, const QByteArray& value, int entryType, const QString& appid)
00131         { return parent->writeEntry(handle, folder, key, value, entryType, appid); }
00132     inline int writeEntry(int handle, const QString& folder, const QString& key, const QByteArray& value, const QString& appid)
00133         { return parent->writeEntry(handle, folder, key, value, appid); }
00134     inline int writeMap(int handle, const QString& folder, const QString& key, const QByteArray& value, const QString& appid)
00135         { return parent->writeMap(handle, folder, key, value, appid); }
00136     inline int writePassword(int handle, const QString& folder, const QString& key, const QString& value, const QString& appid)
00137         { return parent->writePassword(handle, folder, key, value, appid); }
00138 
00139     // Does the entry exist?
00140     inline bool hasEntry(int handle, const QString& folder, const QString& key, const QString& appid)
00141         { return parent->hasEntry(handle, folder, key, appid); }
00142 
00143     // What type is the entry?
00144     inline int entryType(int handle, const QString& folder, const QString& key, const QString& appid)
00145         { return parent->entryType(handle, folder, key, appid); }
00146 
00147     // Remove an entry.  rc=0 on success.
00148     inline int removeEntry(int handle, const QString& folder, const QString& key, const QString& appid)
00149         { return parent->removeEntry(handle, folder, key, appid); }
00150 
00151     // Disconnect an app from a wallet
00152     inline bool disconnectApplication(const QString& wallet, const QString& application)
00153         { return parent->disconnectApplication(wallet, application); }
00154 
00155     inline void reconfigure()
00156         { parent->reconfigure(); }
00157 
00158     // Determine
00159     inline bool folderDoesNotExist(const QString& wallet, const QString& folder)
00160         { return parent->folderDoesNotExist(wallet, folder); }
00161     inline bool keyDoesNotExist(const QString& wallet, const QString& folder, const QString& key)
00162         { return parent->keyDoesNotExist(wallet, folder, key); }
00163 
00164     inline void closeAllWallets()
00165         { parent->closeAllWallets(); }
00166 
00167     inline QString networkWallet()
00168         { return parent->networkWallet(); }
00169 
00170     inline QString localWallet()
00171         { return parent->localWallet(); }
00172 
00173 Q_SIGNALS:
00174     void walletListDirty();
00175     void walletCreated(const QString& wallet);
00176     void walletOpened(const QString& wallet);
00177     void walletDeleted(const QString& wallet);
00178     void walletClosed(const QString& wallet);
00179     void walletClosed(int handle);
00180     void allWalletsClosed();
00181     void folderListUpdated(const QString& wallet);
00182     void folderUpdated(const QString&, const QString&);
00183     void applicationDisconnected(const QString& wallet, const QString& application);
00184 };
00185 
00186 #endif
00187 

KIO

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal