bool InitializePrivateBus (Bus bus)
		{
			if (bus.RequestName (BusName) != RequestNameReply.PrimaryOwner) {
				Log<DBusManager>.Error ("Bus Name '{0}' is already owned", BusName);
				return false;
			}
			
			docky = new DockyDBus ();
			docky.QuitCalled += HandleQuitCalled;
			docky.SettingsCalled += HandleSettingsCalled;
			docky.AboutCalled += HandleAboutCalled;
			
			ObjectPath dockyPath = new ObjectPath (DockyPath);
			bus.Register (dockyPath, docky);
			Log<DBusManager>.Debug ("DBus Registered: {0}", BusName);
			
			return true;
		}
Beispiel #2
0
        bool InitializePrivateBus(Bus bus)
        {
            if (bus.RequestName(BusName) != RequestNameReply.PrimaryOwner)
            {
                Log <DBusManager> .Error("Bus Name '{0}' is already owned", BusName);

                return(false);
            }

            docky                 = new DockyDBus();
            docky.QuitCalled     += HandleQuitCalled;
            docky.SettingsCalled += HandleSettingsCalled;
            docky.AboutCalled    += HandleAboutCalled;

            ObjectPath dockyPath = new ObjectPath(DockyPath);

            bus.Register(dockyPath, docky);
            Log <DBusManager> .Debug("DBus Registered: {0}", BusName);

            return(true);
        }