~ubuntu-branches/ubuntu/precise/gwenview/precise-proposed

« back to all changes in this revision

Viewing changes to lib/documentview/messageviewadapter.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:54 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20111215141754-z043hyx69dulbggf
Tags: upstream-4.7.90
Import upstream version 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// vim: set tabstop=4 shiftwidth=4 noexpandtab:
 
1
// vim: set tabstop=4 shiftwidth=4 expandtab:
2
2
/*
3
3
Gwenview: an image viewer
4
4
Copyright 2008 Aurélien Gâteau <agateau@kde.org>
28
28
// Local
29
29
#include <lib/documentview/abstractdocumentviewadapter.h>
30
30
 
31
 
namespace Gwenview {
32
 
 
 
31
namespace Gwenview
 
32
{
33
33
 
34
34
struct MessageViewAdapterPrivate;
35
 
class MessageViewAdapter : public AbstractDocumentViewAdapter {
36
 
        Q_OBJECT
 
35
class MessageViewAdapter : public AbstractDocumentViewAdapter
 
36
{
 
37
    Q_OBJECT
37
38
public:
38
 
        MessageViewAdapter(QWidget* parent);
39
 
        ~MessageViewAdapter();
40
 
 
41
 
        virtual void installEventFilterOnViewWidgets(QObject*);
42
 
 
43
 
        virtual MimeTypeUtils::Kind kind() const { return MimeTypeUtils::KIND_UNKNOWN; }
44
 
 
45
 
        virtual Document::Ptr document() const;
46
 
 
47
 
        virtual void setDocument(Document::Ptr);
48
 
 
49
 
        void setInfoMessage(const QString&);
50
 
 
51
 
        void setErrorMessage(const QString& main, const QString& detail = QString());
 
39
    MessageViewAdapter();
 
40
    ~MessageViewAdapter();
 
41
 
 
42
    virtual MimeTypeUtils::Kind kind() const {
 
43
        return MimeTypeUtils::KIND_UNKNOWN;
 
44
    }
 
45
 
 
46
    virtual Document::Ptr document() const;
 
47
 
 
48
    virtual void setDocument(Document::Ptr);
 
49
 
 
50
    void setInfoMessage(const QString&);
 
51
 
 
52
    void setErrorMessage(const QString& main, const QString& detail = QString());
52
53
 
53
54
private:
54
 
        MessageViewAdapterPrivate* const d;
 
55
    MessageViewAdapterPrivate* const d;
55
56
};
56
57
 
57
 
 
58
58
} // namespace
59
59
 
60
60
#endif /* MESSAGEVIEWADAPTER_H */