libupnpp  0.16.0
A C++ wrapper for the Portable UPnP reference library
Classes | Public Member Functions | Static Public Member Functions | List of all members
UPnPProvider::VirtualDir Class Reference

Classes

class  FileInfo
 
class  FileOps
 

Public Member Functions

bool addFile (const std::string &path, const std::string &name, const std::string &content, const std::string &mimetype)
 Add file entry, to be served internally. More...
 
bool addVDir (const std::string &path, FileOps fops)
 Add virtual directory entry. More...
 

Static Public Member Functions

static VirtualDirgetVirtualDir ()
 Get hold of the global object.
 

Member Function Documentation

◆ addFile()

bool UPnPProvider::VirtualDir::addFile ( const std::string &  path,
const std::string &  name,
const std::string &  content,
const std::string &  mimetype 
)

Add file entry, to be served internally.

Parameters
pathabsolute /-separated parent directory path
namefile name
contentdata content
mimetypeMIME type

◆ addVDir()

bool UPnPProvider::VirtualDir::addVDir ( const std::string &  path,
FileOps  fops 
)

Add virtual directory entry.

Any request for a path below this point will be forwarded to

Parameters
fops.Only read operations are defined.

The documentation for this class was generated from the following files: