Page MenuHome GnuPG

pinentrydialog.h
No OneTemporary

pinentrydialog.h

This document is not UTF8. It was detected as Shift JIS and converted to UTF8 for display.
/* pinentrydialog.h - A secure KDE dialog for PIN entry.
Copyright (C) 2002 Klar舁vdalens Datakonsult AB
Written by Steffen Hansen <steffen@klaralvdalens-datakonsult.se>.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
This program 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 program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA */
#ifndef __PINENTRYDIALOG_H__
#define __PINENTRYDIALOG_H__
#include <qdialog.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qlabel.h>
class PinEntryDialog : public QDialog {
Q_OBJECT
Q_PROPERTY( QString description READ description WRITE setDescription )
Q_PROPERTY( QString error READ error WRITE setError )
Q_PROPERTY( QString text READ text WRITE setText )
Q_PROPERTY( QString prompt READ prompt WRITE setPrompt )
public:
friend class PinEntryController; // TODO: remove when assuan lets me use Qt eventloop.
PinEntryDialog( QWidget* parent = 0, const char* name = 0, bool modal = false );
void setDescription( const QString& );
QString description() const;
void setError( const QString& );
QString error() const;
void setText( const QString& );
QString text() const;
void setPrompt( const QString& );
QString prompt() const;
signals:
void accepted();
void rejected();
protected:
virtual void keyPressEvent( QKeyEvent *e );
virtual void hideEvent( QHideEvent* );
virtual void paintEvent( QPaintEvent* );
private:
QLabel* _desc;
QLabel* _error;
QLabel* _prompt;
QLineEdit* _edit;
bool _grabbed;
};
#endif // __PINENTRYDIALOG_H__

File Metadata

Mime Type
text/x-c++
Expires
Mon, Dec 23, 1:28 PM (6 h, 15 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
af/b2/da86e7366f8cbd23012266976085

Event Timeline