Beispiel #1
0
 public AppListService(DvDevice aDevice, IAppShell aAppShell)
 {
     iDevice = aDevice;
     iProvider = new AppListProvider(iDevice);
     iDevice.SetEnabled();
     iCallbackTracker = new SafeCallbackTracker();
     iHandler = iCallbackTracker.Create<AppStatusChangeEventArgs>(OnAppStatusChanged);
     iAppShell = aAppShell;
     iAppShell.AppStatusChanged += iHandler;
     OnAppStatusChanged(this, new AppStatusChangeEventArgs());
 }
Beispiel #2
0
 public AppController(string aUdn)
 {
     iDevice = new DvDeviceStandard(aUdn);
     // Set initial values for the attributes mandated by UPnP
     iDevice.SetAttribute("Upnp.Domain", "openhome.org");
     iDevice.SetAttribute("Upnp.Type", "AppManager");
     iDevice.SetAttribute("Upnp.Version", "1");
     iDevice.SetAttribute("Upnp.FriendlyName", "OpenHome App AppShell");
     iDevice.SetAttribute("Upnp.Manufacturer", "N/A");
     iDevice.SetAttribute("Upnp.ModelName", "OpenHome App AppShell");
     iProvider = new AppManagerProvider(iDevice);
     iDevice.SetEnabled();
 }