Deprecate SshIo, Video, EPS and SSH classes

v0.27.3
Luis Diaz Mas 7 years ago
parent 9d62998973
commit 42d79e87aa

@ -31,6 +31,7 @@
#include "exiv2lib_export.h" #include "exiv2lib_export.h"
// included header files // included header files
#include "exiv2lib_compiler_detection.h"
#include "image.hpp" #include "image.hpp"
namespace Exiv2 { namespace Exiv2 {
@ -46,7 +47,7 @@ namespace Exiv2 {
/*! /*!
@brief Class to access ASF video files. @brief Class to access ASF video files.
*/ */
class EXIV2API AsfVideo:public Image class EXIV2_DEPRECATED EXIV2API AsfVideo:public Image
{ {
public: public:
//! @name Creators //! @name Creators
@ -169,10 +170,10 @@ namespace Exiv2 {
Caller owns the returned object and the auto-pointer ensures that Caller owns the returned object and the auto-pointer ensures that
it will be deleted. it will be deleted.
*/ */
EXIV2API Image::AutoPtr newAsfInstance(BasicIo::AutoPtr io, bool create); EXIV2_DEPRECATED EXIV2API Image::AutoPtr newAsfInstance(BasicIo::AutoPtr io, bool create);
//! Check if the file iIo is a Windows Asf Video. //! Check if the file iIo is a Windows Asf Video.
EXIV2API bool isAsfType(BasicIo& iIo, bool advance); EXIV2_DEPRECATED EXIV2API bool isAsfType(BasicIo& iIo, bool advance);
} // namespace Exiv2 } // namespace Exiv2

@ -27,6 +27,7 @@
#include "exiv2lib_export.h" #include "exiv2lib_export.h"
// included header files // included header files
#include "exiv2lib_compiler_detection.h"
#include "types.hpp" #include "types.hpp"
// + standard includes // + standard includes
@ -1112,7 +1113,7 @@ namespace Exiv2 {
@brief Provides the ssh read/write access and sftp read access for the RemoteIo. @brief Provides the ssh read/write access and sftp read access for the RemoteIo.
This class is based on libssh. This class is based on libssh.
*/ */
class EXIV2API SshIo : public RemoteIo { class EXIV2_DEPRECATED EXIV2API SshIo : public RemoteIo {
public: public:
//! @name Creators //! @name Creators
//@{ //@{

@ -38,6 +38,7 @@
#include "exiv2lib_export.h" #include "exiv2lib_export.h"
// included header files // included header files
#include "exiv2lib_compiler_detection.h"
#include "image.hpp" #include "image.hpp"
// ***************************************************************************** // *****************************************************************************
@ -56,7 +57,7 @@ namespace Exiv2
/*! /*!
@brief Class to access EPS images. @brief Class to access EPS images.
*/ */
class EXIV2API EpsImage : public Image { class EXIV2_DEPRECATED EXIV2API EpsImage : public Image {
public: public:
//! @name Creators //! @name Creators
//@{ //@{
@ -114,10 +115,10 @@ namespace Exiv2
Caller owns the returned object and the auto-pointer ensures that Caller owns the returned object and the auto-pointer ensures that
it will be deleted. it will be deleted.
*/ */
EXIV2API Image::AutoPtr newEpsInstance(BasicIo::AutoPtr io, bool create); EXIV2_DEPRECATED EXIV2API Image::AutoPtr newEpsInstance(BasicIo::AutoPtr io, bool create);
//! Check if the file iIo is a EPS image. //! Check if the file iIo is a EPS image.
EXIV2API bool isEpsType(BasicIo& iIo, bool advance); EXIV2_DEPRECATED EXIV2API bool isEpsType(BasicIo& iIo, bool advance);
} // namespace Exiv2 } // namespace Exiv2

@ -31,6 +31,7 @@
#include "exiv2lib_export.h" #include "exiv2lib_export.h"
// included header files // included header files
#include "exiv2lib_compiler_detection.h"
#include "image.hpp" #include "image.hpp"
// ***************************************************************************** // *****************************************************************************
@ -49,7 +50,7 @@ namespace Exiv2 {
/*! /*!
@brief Helper structure for the Matroska tags lookup table. @brief Helper structure for the Matroska tags lookup table.
*/ */
struct MatroskaTags { struct EXIV2_DEPRECATED MatroskaTags {
uint64_t val_; //!< Tag value uint64_t val_; //!< Tag value
const char* label_; //!< Translation of the tag value const char* label_; //!< Translation of the tag value
@ -60,7 +61,7 @@ namespace Exiv2 {
/*! /*!
@brief Class to access Matroska video files. @brief Class to access Matroska video files.
*/ */
class EXIV2API MatroskaVideo : public Image { class EXIV2_DEPRECATED EXIV2API MatroskaVideo : public Image {
public: public:
//! @name Creators //! @name Creators
//@{ //@{
@ -145,10 +146,10 @@ namespace Exiv2 {
Caller owns the returned object and the auto-pointer ensures that Caller owns the returned object and the auto-pointer ensures that
it will be deleted. it will be deleted.
*/ */
EXIV2API Image::AutoPtr newMkvInstance(BasicIo::AutoPtr io, bool create); EXIV2_DEPRECATED EXIV2API Image::AutoPtr newMkvInstance(BasicIo::AutoPtr io, bool create);
//! Check if the file iIo is a Matroska Video. //! Check if the file iIo is a Matroska Video.
EXIV2API bool isMkvType(BasicIo& iIo, bool advance); EXIV2_DEPRECATED EXIV2API bool isMkvType(BasicIo& iIo, bool advance);
} // namespace Exiv2 } // namespace Exiv2

@ -49,7 +49,7 @@ namespace Exiv2 {
/*! /*!
@brief Class to access QuickTime video files. @brief Class to access QuickTime video files.
*/ */
class EXIV2API QuickTimeVideo:public Image class EXIV2_DEPRECATED EXIV2API QuickTimeVideo:public Image
{ {
public: public:
//! @name Creators //! @name Creators
@ -242,10 +242,10 @@ namespace Exiv2 {
Caller owns the returned object and the auto-pointer ensures that Caller owns the returned object and the auto-pointer ensures that
it will be deleted. it will be deleted.
*/ */
EXIV2API Image::AutoPtr newQTimeInstance(BasicIo::AutoPtr io, bool create); EXIV2_DEPRECATED EXIV2API Image::AutoPtr newQTimeInstance(BasicIo::AutoPtr io, bool create);
//! Check if the file iIo is a Quick Time Video. //! Check if the file iIo is a Quick Time Video.
EXIV2API bool isQTimeType(BasicIo& iIo, bool advance); EXIV2_DEPRECATED EXIV2API bool isQTimeType(BasicIo& iIo, bool advance);
} // namespace Exiv2 } // namespace Exiv2

@ -32,6 +32,7 @@
// included header files // included header files
#include "exif.hpp" #include "exif.hpp"
#include "exiv2lib_compiler_detection.h"
#include "image.hpp" #include "image.hpp"
// ***************************************************************************** // *****************************************************************************
@ -49,7 +50,7 @@ namespace Exiv2 {
/*! /*!
@brief Class to access RIFF video files. @brief Class to access RIFF video files.
*/ */
class EXIV2API RiffVideo:public Image class EXIV2_DEPRECATED EXIV2API RiffVideo:public Image
{ {
public: public:
//! @name Creators //! @name Creators
@ -210,10 +211,10 @@ namespace Exiv2 {
Caller owns the returned object and the auto-pointer ensures that Caller owns the returned object and the auto-pointer ensures that
it will be deleted. it will be deleted.
*/ */
EXIV2API Image::AutoPtr newRiffInstance(BasicIo::AutoPtr io, bool create); EXIV2_DEPRECATED EXIV2API Image::AutoPtr newRiffInstance(BasicIo::AutoPtr io, bool create);
//! Check if the file iIo is a Riff Video. //! Check if the file iIo is a Riff Video.
EXIV2API bool isRiffType(BasicIo& iIo, bool advance); EXIV2_DEPRECATED EXIV2API bool isRiffType(BasicIo& iIo, bool advance);
} // namespace Exiv2 } // namespace Exiv2

@ -28,7 +28,9 @@
#include <libssh/sftp.h> #include <libssh/sftp.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <string> #include <string>
#include "error.hpp" #include "error.hpp"
#include "exiv2lib_compiler_detection.h"
#include "types.hpp" #include "types.hpp"
#include "futils.hpp" #include "futils.hpp"
@ -38,7 +40,7 @@ namespace Exiv2 {
It makes the libssh transparent. The functions in this class can It makes the libssh transparent. The functions in this class can
be used without the requirement of understanding libssh. be used without the requirement of understanding libssh.
*/ */
class EXIV2API SSH { class EXIV2_DEPRECATED EXIV2API SSH {
public: public:
//! @name Creators //! @name Creators
//@{ //@{

@ -18,6 +18,10 @@
* Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA. * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
*/ */
#ifndef UTILSVIDEO_HPP_
#define UTILSVIDEO_HPP_
#include "exiv2lib_compiler_detection.h"
namespace Exiv2 namespace Exiv2
{ {
@ -25,7 +29,7 @@ namespace Exiv2
/*! /*!
@brief Class of utility functions used by the video code. @brief Class of utility functions used by the video code.
*/ */
class UtilsVideo class EXIV2_DEPRECATED UtilsVideo
{ {
public: public:
/*! /*!
@ -56,3 +60,5 @@ namespace Exiv2
}; // class UtilsVideo }; // class UtilsVideo
} // namespace Exiv2 } // namespace Exiv2
#endif // #ifndef UTILSVIDEO_HPP_
Loading…
Cancel
Save