Author: mlandres Date: Wed Apr 30 19:57:26 2008 New Revision: 9920 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9920&view=rev Log: deprecate script message and atom Modified: trunk/libzypp/zypp/Atom.h trunk/libzypp/zypp/Message.h trunk/libzypp/zypp/ResKind.h trunk/libzypp/zypp/Script.h Modified: trunk/libzypp/zypp/Atom.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Atom.h?rev=9920&r1=9919&r2=9920&view=diff ============================================================================== --- trunk/libzypp/zypp/Atom.h (original) +++ trunk/libzypp/zypp/Atom.h Wed Apr 30 19:57:26 2008 @@ -22,6 +22,9 @@ // // CLASS NAME : Atom // + /** + * \deprecated class is obsolete + */ class Atom : public ResObject { public: @@ -33,7 +36,7 @@ protected: friend Ptr make<Self>( const sat::Solvable & solvable_r ); /** Ctor */ - Atom( const sat::Solvable & solvable_r ); + Atom( const sat::Solvable & solvable_r ) ZYPP_DEPRECATED; /** Dtor */ virtual ~Atom(); }; Modified: trunk/libzypp/zypp/Message.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Message.h?rev=9920&r1=9919&r2=9920&view=diff ============================================================================== --- trunk/libzypp/zypp/Message.h (original) +++ trunk/libzypp/zypp/Message.h Wed Apr 30 19:57:26 2008 @@ -24,6 +24,7 @@ // CLASS NAME : Message // /** Class representing the message to be shown during update. + * \deprecated class is obsolete */ class Message : public ResObject { @@ -35,14 +36,14 @@ public: /** Get the text of the message */ - TranslatedText text() const; + TranslatedText text() const ZYPP_DEPRECATED; /** Patch the message belongs to - if any */ - ResTraits<Patch>::constPtrType patch() const; + ResTraits<Patch>::constPtrType patch() const ZYPP_DEPRECATED; protected: friend Ptr make<Self>( const sat::Solvable & solvable_r ); /** Ctor */ - Message( const sat::Solvable & solvable_r ); + Message( const sat::Solvable & solvable_r ) ZYPP_DEPRECATED; /** Dtor */ virtual ~Message(); }; Modified: trunk/libzypp/zypp/ResKind.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ResKind.h?rev=9920&r1=9919&r2=9920&view=diff ============================================================================== --- trunk/libzypp/zypp/ResKind.h (original) +++ trunk/libzypp/zypp/ResKind.h Wed Apr 30 19:57:26 2008 @@ -15,6 +15,7 @@ #include <iosfwd> #include <string> +#include "zypp/base/Deprecated.h" #include "zypp/base/String.h" #include "zypp/IdStringType.h" @@ -39,13 +40,13 @@ /** Value representing \c nokind (<tt>""</tt>)*/ static const ResKind nokind; - static const ResKind atom; - static const ResKind message; + static const ResKind atom ZYPP_DEPRECATED; + static const ResKind message ZYPP_DEPRECATED; static const ResKind package; static const ResKind patch; static const ResKind pattern; static const ResKind product; - static const ResKind script; + static const ResKind script ZYPP_DEPRECATED; static const ResKind srcpackage; //@} Modified: trunk/libzypp/zypp/Script.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Script.h?rev=9920&r1=9919&r2=9920&view=diff ============================================================================== --- trunk/libzypp/zypp/Script.h (original) +++ trunk/libzypp/zypp/Script.h Wed Apr 30 19:57:26 2008 @@ -23,7 +23,8 @@ // CLASS NAME : Script // /** Class representing an update script. - */ + * \deprecated class is obsolete + */ class Script : public ResObject { public: @@ -34,17 +35,17 @@ public: /** Check whether a script is available. */ - bool doAvailable() const; + bool doAvailable() const ZYPP_DEPRECATED; /** Return an inlined script if available. * Otherwise it is available at \ref doScriptLocation. */ - std::string doScriptInlined() const; + std::string doScriptInlined() const ZYPP_DEPRECATED; /** Location of the script, unless it is available inlined. * \see \ref doScriptInlined */ - OnMediaLocation doScriptLocation() const; + OnMediaLocation doScriptLocation() const ZYPP_DEPRECATED; /** Check whether a script to undo the change is available. */ bool undoAvailable() const; @@ -52,17 +53,17 @@ /** Return an inlined undo script if available. * Otherwise it is available at \ref undoScriptLocation. */ - std::string undoScriptInlined() const; + std::string undoScriptInlined() const ZYPP_DEPRECATED; /** Location of the undo script, unless it is available inlined. * \see \ref undoScriptInlined */ - OnMediaLocation undoScriptLocation() const; + OnMediaLocation undoScriptLocation() const ZYPP_DEPRECATED; protected: friend Ptr make<Self>( const sat::Solvable & solvable_r ); /** Ctor */ - Script( const sat::Solvable & solvable_r ); + Script( const sat::Solvable & solvable_r ) ZYPP_DEPRECATED; /** Dtor */ virtual ~Script(); }; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org