• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

okular

  • sources
  • kde-4.12
  • kdegraphics
  • okular
  • interfaces
saveinterface.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2008 by Pino Toscano <pino@kde.org> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  ***************************************************************************/
9 
10 #ifndef _OKULAR_SAVEINTERFACE_H_
11 #define _OKULAR_SAVEINTERFACE_H_
12 
13 #include "../core/okular_export.h"
14 
15 #include <QtCore/QObject>
16 
17 namespace Okular {
18 
19 class AnnotationProxy;
20 
39 class OKULAR_EXPORT SaveInterface
40 {
41  public:
45  enum SaveOption
46  {
47  NoOption = 0,
48  SaveChanges = 1
49  };
50  Q_DECLARE_FLAGS( SaveOptions, SaveOption )
51 
52 
55  virtual ~SaveInterface() {}
56 
62  virtual bool supportsOption( SaveOption option ) const = 0;
63 
67  virtual bool save( const QString &fileName, SaveOptions options, QString *errorText ) = 0;
68 
77  virtual AnnotationProxy* annotationProxy() const = 0;
78 };
79 
80 }
81 
82 Q_DECLARE_INTERFACE( Okular::SaveInterface, "org.kde.okular.SaveInterface/0.3" )
83 Q_DECLARE_OPERATORS_FOR_FLAGS( Okular::SaveInterface::SaveOptions )
84 
85 #endif
Okular::SaveInterface::SaveOption
SaveOption
The possible options for the saving.
Definition: saveinterface.h:45
Okular::AnnotationProxy
Native annotation interface.
Definition: annotations.h:686
Okular::SaveInterface
Abstract interface for saving.
Definition: saveinterface.h:39
OKULAR_EXPORT
#define OKULAR_EXPORT
Definition: okular_export.h:30
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal