本文整理匯總了Java中org.cybergarage.upnp.control.QueryListener類的典型用法代碼示例。如果您正苦於以下問題:Java QueryListener類的具體用法?Java QueryListener怎麽用?Java QueryListener使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
QueryListener類屬於org.cybergarage.upnp.control包,在下文中一共展示了QueryListener類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: performQueryListener
import org.cybergarage.upnp.control.QueryListener; //導入依賴的package包/類
public boolean performQueryListener(QueryRequest queryReq)
{
QueryListener listener = getQueryListener();
if (listener == null)
return false;
QueryResponse queryRes = new QueryResponse();
StateVariable retVar = new StateVariable();
retVar.set(this);
retVar.setValue("");
retVar.setStatus(UPnPStatus.INVALID_VAR);
if (listener.queryControlReceived(retVar) == true) {
queryRes.setResponse(retVar);
}
else {
UPnPStatus upnpStatus = retVar.getStatus();
queryRes.setFaultResponse(upnpStatus.getCode(), upnpStatus.getDescription());
}
queryReq.post(queryRes);
return true;
}
示例2: setQueryListener
import org.cybergarage.upnp.control.QueryListener; //導入依賴的package包/類
public void setQueryListener(QueryListener listener)
{
ServiceList serviceList = getServiceList();
int nServices = serviceList.size();
for (int n=0; n<nServices; n++) {
Service service = serviceList.getService(n);
service.setQueryListener(listener);
}
}
示例3: setQueryListener
import org.cybergarage.upnp.control.QueryListener; //導入依賴的package包/類
public void setQueryListener(QueryListener queryListener)
{
ServiceStateTable stateTable = getServiceStateTable();
int tableSize = stateTable.size();
for (int n=0; n<tableSize; n++) {
StateVariable var = stateTable.getStateVariable(n);
var.setQueryListener(queryListener);
}
}
示例4: setQueryListener
import org.cybergarage.upnp.control.QueryListener; //導入依賴的package包/類
public void setQueryListener(QueryListener listener) {
ServiceList serviceList = getServiceList();
int nServices = serviceList.size();
for (int n = 0; n < nServices; n++) {
Service service = serviceList.getService(n);
service.setQueryListener(listener);
}
}
示例5: getQueryListener
import org.cybergarage.upnp.control.QueryListener; //導入依賴的package包/類
public QueryListener getQueryListener()
{
return getStateVariableData().getQueryListener();
}
示例6: setQueryListener
import org.cybergarage.upnp.control.QueryListener; //導入依賴的package包/類
public void setQueryListener(QueryListener listener)
{
getStateVariableData().setQueryListener(listener);
}