00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #include "zypp/detail/ResObjectImplIf.h" 00013 #include "zypp/Repository.h" 00014 #include "zypp/DiskUsage.h" 00015 00017 namespace zypp 00018 { 00019 00020 namespace detail 00021 { 00022 00024 // Default implementation of ResObjectImplIf attributes, 00025 // as far as resonable. 00027 00028 TranslatedText ResObjectImplIf::summary() const 00029 { return TranslatedText::notext; } 00030 00031 TranslatedText ResObjectImplIf::description() const 00032 { return TranslatedText::notext; } 00033 00034 TranslatedText ResObjectImplIf::insnotify() const 00035 { return TranslatedText::notext; } 00036 00037 TranslatedText ResObjectImplIf::delnotify() const 00038 { return TranslatedText::notext; } 00039 00040 TranslatedText ResObjectImplIf::licenseToConfirm() const 00041 { return TranslatedText::notext; } 00042 00043 Vendor ResObjectImplIf::vendor() const 00044 { return Vendor(); } 00045 00046 Repository ResObjectImplIf::repository() const 00047 { return Repository::noRepository; } 00048 00049 bool ResObjectImplIf::installOnly() const 00050 { return false; } 00051 00052 Date ResObjectImplIf::buildtime() const 00053 { return Date(); } 00054 00055 Date ResObjectImplIf::installtime() const 00056 { return Date(); } 00057 00058 unsigned ResObjectImplIf::mediaNr() const 00059 { return 0; } 00060 00061 ByteCount ResObjectImplIf::size() const 00062 { return ByteCount(); } 00063 00064 ByteCount ResObjectImplIf::downloadSize() const 00065 { return ByteCount(); } 00066 00067 const DiskUsage & ResObjectImplIf::diskusage() const 00068 { 00069 static DiskUsage _du; 00070 return _du; 00071 } 00073 } // namespace detail 00076 } // namespace zypp
1.5.3