kleopatra
resultitemwidget.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef __KLEOPATRA_CRYPTO_GUI_RESULTITEMWIDGET_H__
00034 #define __KLEOPATRA_CRYPTO_GUI_RESULTITEMWIDGET_H__
00035
00036 #include <QWidget>
00037
00038 #include <crypto/task.h>
00039
00040 #include <utils/pimpl_ptr.h>
00041
00042 #include <boost/shared_ptr.hpp>
00043
00044 class QString;
00045
00046 namespace Kleo {
00047 namespace Crypto {
00048
00049 class Task;
00050
00051 namespace Gui {
00052
00053 class ResultItemWidget : public QWidget {
00054 Q_OBJECT
00055 public:
00056 ResultItemWidget( const boost::shared_ptr<const Task::Result> &result, QWidget * parent=0, Qt::WindowFlags flags=0 );
00057 ~ResultItemWidget();
00058
00059 bool detailsVisible() const;
00060 bool hasErrorResult() const;
00061
00062 void showCloseButton( bool show );
00063
00064 public Q_SLOTS:
00065 void showDetails( bool show = true );
00066 void showAuditLog();
00067
00068 Q_SIGNALS:
00069 void linkActivated( const QString & link );
00070 void closeButtonClicked();
00071 void detailsToggled( bool );
00072
00073 private:
00074 class Private;
00075 kdtools::pimpl_ptr<Private> d;
00076 Q_PRIVATE_SLOT( d, void slotLinkActivated( QString ) )
00077 };
00078 }
00079 }
00080 }
00081
00082 #endif // __KLEOPATRA_CRYPTO_GUI_RESULTITEMWIDGET_H__