Imported Upstream version 14.45.0
[platform/upstream/libzypp.git] / zypp / ZYppCallbacks.h
index 657fd58..bca1192 100644 (file)
@@ -157,6 +157,23 @@ namespace zypp
       virtual void finishDeltaApply()
       {}
 
+      /** \deprecated Unused since 2008 */
+      virtual ZYPP_DEPRECATED void startPatchDownload( const Pathname & /*filename*/, const ByteCount & /*downloadsize*/ )
+      {}
+
+      /** \deprecated Unused since 2008 */
+      virtual ZYPP_DEPRECATED bool progressPatchDownload( int /*value*/ )
+      { return true; }
+
+      /** \deprecated Unused since 2008 */
+      virtual ZYPP_DEPRECATED void problemPatchDownload( const std::string &/*description*/ )
+      {}
+
+      /** \deprecated Unused since 2008 */
+      virtual ZYPP_DEPRECATED void finishPatchDownload()
+      {}
+
+
       // return false if the download should be aborted right now
       virtual bool progress(int /*value*/, Resolvable::constPtr /*resolvable_ptr*/)
       { return true; }
@@ -786,10 +803,10 @@ namespace zypp
   {
   public:
     /** message type (use like 'enum class \ref MsgType') */
-    struct EMsgTypeDef {
+    struct _MsgTypeDef {
       enum Enum { debug, info, warning, error, important, data };
     };
-    typedef base::EnumClass<EMsgTypeDef> MsgType;      ///< 'enum class MsgType'
+    typedef base::EnumClass<_MsgTypeDef> MsgType;      ///< 'enum class MsgType'
 
     /** typsafe map of userdata */
     typedef callback::UserData UserData;
@@ -806,27 +823,27 @@ namespace zypp
     static callback::SendReport<JobReport> & instance();       // impl in ZYppImpl.cc
 
     /** send debug message text */
-    static bool debug( const std::string & msg_r, const UserData & userData_r = UserData() )
+    static bool debug( const MessageString & msg_r, const UserData & userData_r = UserData() )
     { return instance()->message( MsgType::debug, msg_r, userData_r ); }
 
     /** send message text */
-    static bool info( const std::string & msg_r, const UserData & userData_r = UserData() )
+    static bool info( const MessageString & msg_r, const UserData & userData_r = UserData() )
     { return instance()->message( MsgType::info, msg_r, userData_r ); }
 
     /** send warning text */
-    static bool warning( const std::string & msg_r, const UserData & userData_r = UserData() )
+    static bool warning( const MessageString & msg_r, const UserData & userData_r = UserData() )
     { return instance()->message( MsgType::warning, msg_r, userData_r ); }
 
     /** send error text */
-    static bool error( const std::string & msg_r, const UserData & userData_r = UserData() )
+    static bool error( const MessageString & msg_r, const UserData & userData_r = UserData() )
     { return instance()->message( MsgType::error, msg_r, userData_r ); }
 
     /** send important message text */
-    static bool important( const std::string & msg_r, const UserData & userData_r = UserData() )
+    static bool important( const MessageString & msg_r, const UserData & userData_r = UserData() )
     { return instance()->message( MsgType::important, msg_r, userData_r ); }
 
     /** send data message */
-    static bool data( const std::string & msg_r, const UserData & userData_r = UserData() )
+    static bool data( const MessageString & msg_r, const UserData & userData_r = UserData() )
     { return instance()->message( MsgType::data, msg_r, userData_r ); }
     //@}
   };