diff options
| author | manuel <manuel@mausz.at> | 2021-03-04 23:36:40 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2021-03-04 23:36:40 +0100 |
| commit | 3cb8aa05f8cee9e860cf83531682ff0ed4af6a4f (patch) | |
| tree | 921f4829b32126f80f9113c124f2e14c0ebce8d9 /xbmc/addons/kodi-dev-kit/include/kodi/Filesystem.h | |
| parent | be933ef2241d79558f91796cc5b3a161f72ebf9c (diff) | |
| download | kodi-pvr-build-Matrix.tar.gz kodi-pvr-build-Matrix.tar.bz2 kodi-pvr-build-Matrix.zip | |
sync with upstreamMatrix
Diffstat (limited to 'xbmc/addons/kodi-dev-kit/include/kodi/Filesystem.h')
| -rw-r--r-- | xbmc/addons/kodi-dev-kit/include/kodi/Filesystem.h | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/Filesystem.h b/xbmc/addons/kodi-dev-kit/include/kodi/Filesystem.h index 1cf05fe..9e05983 100644 --- a/xbmc/addons/kodi-dev-kit/include/kodi/Filesystem.h +++ b/xbmc/addons/kodi-dev-kit/include/kodi/Filesystem.h | |||
| @@ -91,7 +91,7 @@ namespace vfs | |||
| 91 | /// @brief **File information status**\n | 91 | /// @brief **File information status**\n |
| 92 | /// Used on kodi::vfs::StatFile() to get detailed information about a file. | 92 | /// Used on kodi::vfs::StatFile() to get detailed information about a file. |
| 93 | /// | 93 | /// |
| 94 | //@{ | 94 | ///@{ |
| 95 | class ATTRIBUTE_HIDDEN FileStatus : public kodi::addon::CStructHdl<FileStatus, STAT_STRUCTURE> | 95 | class ATTRIBUTE_HIDDEN FileStatus : public kodi::addon::CStructHdl<FileStatus, STAT_STRUCTURE> |
| 96 | { | 96 | { |
| 97 | public: | 97 | public: |
| @@ -102,7 +102,7 @@ public: | |||
| 102 | FileStatus(STAT_STRUCTURE* channel) : CStructHdl(channel) {} | 102 | FileStatus(STAT_STRUCTURE* channel) : CStructHdl(channel) {} |
| 103 | /*! \endcond */ | 103 | /*! \endcond */ |
| 104 | 104 | ||
| 105 | /// @defgroup cpp_kodi_vfs_Defs_FileStatus_Help *Value Help* | 105 | /// @defgroup cpp_kodi_vfs_Defs_FileStatus_Help Value Help |
| 106 | /// @ingroup cpp_kodi_vfs_Defs_FileStatus | 106 | /// @ingroup cpp_kodi_vfs_Defs_FileStatus |
| 107 | /// ---------------------------------------------------------------------------- | 107 | /// ---------------------------------------------------------------------------- |
| 108 | /// | 108 | /// |
| @@ -126,7 +126,7 @@ public: | |||
| 126 | 126 | ||
| 127 | /// @addtogroup cpp_kodi_vfs_Defs_FileStatus | 127 | /// @addtogroup cpp_kodi_vfs_Defs_FileStatus |
| 128 | /// @copydetails cpp_kodi_vfs_Defs_FileStatus_Help | 128 | /// @copydetails cpp_kodi_vfs_Defs_FileStatus_Help |
| 129 | //@{ | 129 | ///@{ |
| 130 | 130 | ||
| 131 | /// @brief Set ID of device containing file. | 131 | /// @brief Set ID of device containing file. |
| 132 | void SetDeviceId(uint32_t deviceId) { m_cStructure->deviceId = deviceId; } | 132 | void SetDeviceId(uint32_t deviceId) { m_cStructure->deviceId = deviceId; } |
| @@ -208,9 +208,9 @@ public: | |||
| 208 | 208 | ||
| 209 | /// @brief Get stat url is a regular. | 209 | /// @brief Get stat url is a regular. |
| 210 | bool GetIsSocket() const { return m_cStructure->isSocket; } | 210 | bool GetIsSocket() const { return m_cStructure->isSocket; } |
| 211 | //@} | 211 | ///@} |
| 212 | }; | 212 | }; |
| 213 | //@} | 213 | ///@} |
| 214 | //------------------------------------------------------------------------------ | 214 | //------------------------------------------------------------------------------ |
| 215 | 215 | ||
| 216 | //============================================================================== | 216 | //============================================================================== |
| @@ -220,7 +220,7 @@ public: | |||
| 220 | /// Used on kodi::vfs::CFile::IoControlGetCacheStatus() to get running cache | 220 | /// Used on kodi::vfs::CFile::IoControlGetCacheStatus() to get running cache |
| 221 | /// status of proccessed stream. | 221 | /// status of proccessed stream. |
| 222 | /// | 222 | /// |
| 223 | //@{ | 223 | ///@{ |
| 224 | class ATTRIBUTE_HIDDEN CacheStatus | 224 | class ATTRIBUTE_HIDDEN CacheStatus |
| 225 | : public kodi::addon::CStructHdl<CacheStatus, VFS_CACHE_STATUS_DATA> | 225 | : public kodi::addon::CStructHdl<CacheStatus, VFS_CACHE_STATUS_DATA> |
| 226 | { | 226 | { |
| @@ -232,7 +232,7 @@ public: | |||
| 232 | CacheStatus(VFS_CACHE_STATUS_DATA* channel) : CStructHdl(channel) {} | 232 | CacheStatus(VFS_CACHE_STATUS_DATA* channel) : CStructHdl(channel) {} |
| 233 | /*! \endcond */ | 233 | /*! \endcond */ |
| 234 | 234 | ||
| 235 | /// @defgroup cpp_kodi_vfs_Defs_CacheStatus_Help *Value Help* | 235 | /// @defgroup cpp_kodi_vfs_Defs_CacheStatus_Help Value Help |
| 236 | /// @ingroup cpp_kodi_vfs_Defs_CacheStatus | 236 | /// @ingroup cpp_kodi_vfs_Defs_CacheStatus |
| 237 | /// ---------------------------------------------------------------------------- | 237 | /// ---------------------------------------------------------------------------- |
| 238 | /// | 238 | /// |
| @@ -247,7 +247,7 @@ public: | |||
| 247 | 247 | ||
| 248 | /// @addtogroup cpp_kodi_vfs_Defs_CacheStatus | 248 | /// @addtogroup cpp_kodi_vfs_Defs_CacheStatus |
| 249 | /// @copydetails cpp_kodi_vfs_Defs_CacheStatus_Help | 249 | /// @copydetails cpp_kodi_vfs_Defs_CacheStatus_Help |
| 250 | //@{ | 250 | ///@{ |
| 251 | 251 | ||
| 252 | /// @brief Set number of bytes cached forward of current position. | 252 | /// @brief Set number of bytes cached forward of current position. |
| 253 | void SetForward(uint64_t forward) { m_cStructure->forward = forward; } | 253 | void SetForward(uint64_t forward) { m_cStructure->forward = forward; } |
| @@ -273,9 +273,9 @@ public: | |||
| 273 | /// @brief Get cache low speed condition detected. | 273 | /// @brief Get cache low speed condition detected. |
| 274 | bool GetLowspeed() { return m_cStructure->lowspeed; } | 274 | bool GetLowspeed() { return m_cStructure->lowspeed; } |
| 275 | 275 | ||
| 276 | //@} | 276 | ///@} |
| 277 | }; | 277 | }; |
| 278 | //@} | 278 | ///@} |
| 279 | //------------------------------------------------------------------------------ | 279 | //------------------------------------------------------------------------------ |
| 280 | 280 | ||
| 281 | //============================================================================== | 281 | //============================================================================== |
| @@ -318,7 +318,7 @@ public: | |||
| 318 | } | 318 | } |
| 319 | //-------------------------------------------------------------------------- | 319 | //-------------------------------------------------------------------------- |
| 320 | 320 | ||
| 321 | /// @defgroup cpp_kodi_vfs_Defs_HttpHeader_Help *Value Help* | 321 | /// @defgroup cpp_kodi_vfs_Defs_HttpHeader_Help Value Help |
| 322 | /// @ingroup cpp_kodi_vfs_Defs_HttpHeader | 322 | /// @ingroup cpp_kodi_vfs_Defs_HttpHeader |
| 323 | /// | 323 | /// |
| 324 | /// <b>The following table contains values that can be get with @ref cpp_kodi_vfs_Defs_HttpHeader :</b> | 324 | /// <b>The following table contains values that can be get with @ref cpp_kodi_vfs_Defs_HttpHeader :</b> |
| @@ -382,6 +382,7 @@ public: | |||
| 382 | if (res) | 382 | if (res) |
| 383 | { | 383 | { |
| 384 | std::vector<std::string> vecReturn; | 384 | std::vector<std::string> vecReturn; |
| 385 | vecReturn.reserve(numValues); | ||
| 385 | for (int i = 0; i < numValues; ++i) | 386 | for (int i = 0; i < numValues; ++i) |
| 386 | { | 387 | { |
| 387 | vecReturn.emplace_back(res[i]); | 388 | vecReturn.emplace_back(res[i]); |
| @@ -537,7 +538,7 @@ public: | |||
| 537 | /// It has the header @ref Filesystem.h "#include <kodi/Filesystem.h>" be included | 538 | /// It has the header @ref Filesystem.h "#include <kodi/Filesystem.h>" be included |
| 538 | /// to enjoy it. | 539 | /// to enjoy it. |
| 539 | /// | 540 | /// |
| 540 | //@{ | 541 | ///@{ |
| 541 | class ATTRIBUTE_HIDDEN CDirEntry | 542 | class ATTRIBUTE_HIDDEN CDirEntry |
| 542 | { | 543 | { |
| 543 | public: | 544 | public: |
| @@ -580,7 +581,7 @@ public: | |||
| 580 | } | 581 | } |
| 581 | //---------------------------------------------------------------------------- | 582 | //---------------------------------------------------------------------------- |
| 582 | 583 | ||
| 583 | /// @defgroup cpp_kodi_vfs_CDirEntry_Help *Value Help* | 584 | /// @defgroup cpp_kodi_vfs_CDirEntry_Help Value Help |
| 584 | /// @ingroup cpp_kodi_vfs_CDirEntry | 585 | /// @ingroup cpp_kodi_vfs_CDirEntry |
| 585 | /// -------------------------------------------------------------------------- | 586 | /// -------------------------------------------------------------------------- |
| 586 | /// | 587 | /// |
| @@ -598,7 +599,7 @@ public: | |||
| 598 | 599 | ||
| 599 | /// @addtogroup cpp_kodi_vfs_CDirEntry | 600 | /// @addtogroup cpp_kodi_vfs_CDirEntry |
| 600 | /// @copydetails cpp_kodi_vfs_CDirEntry_Help | 601 | /// @copydetails cpp_kodi_vfs_CDirEntry_Help |
| 601 | //@{ | 602 | ///@{ |
| 602 | 603 | ||
| 603 | //============================================================================ | 604 | //============================================================================ |
| 604 | /// @brief Get the directory entry name. | 605 | /// @brief Get the directory entry name. |
| @@ -723,7 +724,7 @@ public: | |||
| 723 | const std::map<std::string, std::string>& GetProperties() const { return m_properties; } | 724 | const std::map<std::string, std::string>& GetProperties() const { return m_properties; } |
| 724 | //---------------------------------------------------------------------------- | 725 | //---------------------------------------------------------------------------- |
| 725 | 726 | ||
| 726 | //@} | 727 | ///@} |
| 727 | 728 | ||
| 728 | private: | 729 | private: |
| 729 | std::string m_label; | 730 | std::string m_label; |
| @@ -734,7 +735,7 @@ private: | |||
| 734 | int64_t m_size; | 735 | int64_t m_size; |
| 735 | time_t m_dateTime; | 736 | time_t m_dateTime; |
| 736 | }; | 737 | }; |
| 737 | //@} | 738 | ///@} |
| 738 | //------------------------------------------------------------------------------ | 739 | //------------------------------------------------------------------------------ |
| 739 | 740 | ||
| 740 | //}}} | 741 | //}}} |
| @@ -1823,7 +1824,7 @@ inline bool ATTRIBUTE_HIDDEN GetCookies(const std::string& url, std::string& coo | |||
| 1823 | /// | 1824 | /// |
| 1824 | /// ~~~~~~~~~~~~~ | 1825 | /// ~~~~~~~~~~~~~ |
| 1825 | /// | 1826 | /// |
| 1826 | //@{ | 1827 | ///@{ |
| 1827 | class ATTRIBUTE_HIDDEN CFile | 1828 | class ATTRIBUTE_HIDDEN CFile |
| 1828 | { | 1829 | { |
| 1829 | public: | 1830 | public: |
| @@ -2324,6 +2325,7 @@ public: | |||
| 2324 | if (res) | 2325 | if (res) |
| 2325 | { | 2326 | { |
| 2326 | std::vector<std::string> vecReturn; | 2327 | std::vector<std::string> vecReturn; |
| 2328 | vecReturn.reserve(numValues); | ||
| 2327 | for (int i = 0; i < numValues; ++i) | 2329 | for (int i = 0; i < numValues; ++i) |
| 2328 | { | 2330 | { |
| 2329 | vecReturn.emplace_back(res[i]); | 2331 | vecReturn.emplace_back(res[i]); |
| @@ -2356,7 +2358,7 @@ public: | |||
| 2356 | private: | 2358 | private: |
| 2357 | void* m_file = nullptr; | 2359 | void* m_file = nullptr; |
| 2358 | }; | 2360 | }; |
| 2359 | //@} | 2361 | ///@} |
| 2360 | //------------------------------------------------------------------------------ | 2362 | //------------------------------------------------------------------------------ |
| 2361 | 2363 | ||
| 2362 | //}}} | 2364 | //}}} |
