kodi
ZeroconfDirectory.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "IDirectory.h"
12 //txt-records as of http://www.dns-sd.org/ServiceTypes.html
13 #define TXT_RECORD_PATH_KEY "path"
14 #define TXT_RECORD_USERNAME_KEY "u"
15 #define TXT_RECORD_PASSWORD_KEY "p"
16 
17 namespace XFILE
18 {
20  {
21  public:
22  CZeroconfDirectory(void);
23  ~CZeroconfDirectory(void) override;
24  bool GetDirectory(const CURL& url, CFileItemList &items) override;
25  DIR_CACHE_TYPE GetCacheType(const CURL& url) const override { return DIR_CACHE_NEVER; }
26  };
27 }
28 
Definition: ZeroconfDirectory.h:19
Interface to the directory on a file system.
Definition: IDirectory.h:51
Definition: Scraper.h:41
Represents a list of files.
Definition: FileItem.h:702
Definition: URL.h:21
bool GetDirectory(const CURL &url, CFileItemList &items) override
Get the items of the directory strPath.
Definition: ZeroconfDirectory.cpp:148
DIR_CACHE_TYPE GetCacheType(const CURL &url) const override
How this directory should be cached.
Definition: ZeroconfDirectory.h:25