dial spec 2.0

This commit is contained in:
jcli
2015-10-20 16:33:55 -07:00
parent 3454a59e99
commit 2477615a40
15 changed files with 656 additions and 362 deletions

View File

@@ -50,11 +50,13 @@ public:
* empty string to find any server
*
*/
DialServer( string location, string appsUrl, string dd_xml ) :
DialServer( string location, string appsUrl, string dd_xml, string macAddr, int wakeUpTimeout) :
m_location(location),
m_appsUrl(appsUrl),
found(true),
m_ddxml(dd_xml)
m_ddxml(dd_xml),
m_macAddr(macAddr),
m_wakeUpTimeout(wakeUpTimeout)
{}
~DialServer() { ATRACE("%s\n", __FUNCTION__); }
@@ -94,6 +96,20 @@ public:
*/
bool getUuid( string& uuid );
/**
* Get the dial server mac address
*
* @return mac address if avaliable, '' if not.
*/
string getMacAddress();
/**
* Get the wake on lan timeout in seconds
*
* @return timeout value if avaliable, zero if not.
*/
int getWakeOnLanTimeout();
/**
* Launch a DIAL application
*
@@ -176,6 +192,9 @@ private:
bool found;
string m_ddxml; // information about the device
string m_stopEndPoint;
string m_macAddr;
int m_wakeUpTimeout;
};
#endif // DIALSERVER_H