~adamreichold/qpdfview/trunk

« back to all changes in this revision

Viewing changes to sources/model.h

  • Committer: Adam Reichold
  • Date: 2014-03-29 10:20:32 UTC
  • Revision ID: adam.reichold@t-online.com-20140329102032-6z5yl9a2fkwm62rd
Make proper use of application and anonymous namespaces and fix a few header guards.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
#include "global.h"
38
38
 
39
 
namespace Model
 
39
namespace qpdfview
 
40
{
 
41
 
 
42
namespace model
40
43
{
41
44
    struct Link
42
45
    {
174
177
public:
175
178
    virtual ~Plugin() {}
176
179
 
177
 
    virtual Model::Document* loadDocument(const QString& filePath) const = 0;
 
180
    virtual model::Document* loadDocument(const QString& filePath) const = 0;
178
181
 
179
182
    virtual SettingsWidget* createSettingsWidget(QWidget* parent = 0) const { Q_UNUSED(parent); return 0; }
180
183
 
181
184
};
182
185
 
183
 
Q_DECLARE_INTERFACE(Plugin, "local.qpdfview.Plugin")
 
186
} // qpdfview
 
187
 
 
188
Q_DECLARE_INTERFACE(qpdfview::Plugin, "local.qpdfview.Plugin")
184
189
 
185
190
#endif // DOCUMENTMODEL_H