delay a few things on startup, such as setting the visibility mode, which ensures...
[personal-kdebase.git] / runtime / kwalletd / backend / kwalletentry.h
blob7966f461df71ac5c1370951636faec2b301a792e
1 /* This file is part of the KDE project
3 * Copyright (C) 2001-2003 George Staikos <staikos@kde.org>
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 as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
22 #ifndef _KWALLETENTRY_H
23 #define _KWALLETENTRY_H
25 #include <QtCore/QString>
26 #include <QtCore/QDataStream>
28 #include "kwallet_export.h"
29 #include "kwallet.h"
31 namespace KWallet {
33 /* @internal
35 class KWALLETBACKEND_EXPORT Entry {
36 public:
37 Entry();
38 ~Entry();
40 const QString& key() const;
41 const QByteArray& value() const;
42 QString password() const;
43 const QByteArray& map() const { return value(); }
45 void setValue(const QByteArray& val);
46 void setValue(const QString& val);
47 void setKey(const QString& key);
49 Wallet::EntryType type() const;
50 void setType(Wallet::EntryType type);
52 void copy(const Entry* x);
54 private:
55 QString _key;
56 QByteArray _value;
57 Wallet::EntryType _type;
62 #endif