From: Jiri Srain Date: Tue, 3 Jan 2006 15:31:57 +0000 (+0000) Subject: Added installtime to public package interface X-Git-Tag: BASE-SuSE-SLE-10-SP2-Branch~3522 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e52c1528a250c0c9a66b84a59f8e238aa8f30c52;p=platform%2Fupstream%2Flibzypp.git Added installtime to public package interface --- diff --git a/zypp/Package.cc b/zypp/Package.cc index 1e899f3..979cbf3 100644 --- a/zypp/Package.cc +++ b/zypp/Package.cc @@ -45,6 +45,9 @@ namespace zypp Changelog Package::changelog() { return pimpl().changelog(); } + /** Time of package installation */ + Date Package::installtime() + { return pimpl().installtime(); } ///////////////////////////////////////////////////////////////// } // namespace zypp /////////////////////////////////////////////////////////////////// diff --git a/zypp/Package.h b/zypp/Package.h index 44a005d..ba3bc89 100644 --- a/zypp/Package.h +++ b/zypp/Package.h @@ -35,7 +35,10 @@ namespace zypp typedef TraitsType::constPtrType constPtr; public: - /** */ + /** Time of package installation */ + Date installtime(); + /** Get the package change log */ + Changelog changelog(); // data here: protected: @@ -45,8 +48,6 @@ namespace zypp const Arch & arch_r ); /** Dtor */ virtual ~Package(); - /** Get the package change log */ - Changelog changelog(); private: /** Access implementation */