예제 #1
0
        static bool SupportsCapability(NotificationCapability capability)
        {
            // positioning and scaling are not actual capabilities, i just know for a fact most other servers
            // support geo. hints, and notify-osd is the only that auto scales images
            if (capability == NotificationCapability.positioning)
            {
                return(!ServerIsNotifyOSD());
            }
            else if (capability == NotificationCapability.scaling)
            {
                return(ServerIsNotifyOSD());
            }

            return(Array.IndexOf(LibNotify.Global.Capabilities, Enum.GetName(typeof(NotificationCapability), capability)) > -1);
        }
		static bool SupportsCapability (NotificationCapability capability)
		{
			// positioning and scaling are not actual capabilities, i just know for a fact most other servers
			// support geo. hints, and notify-osd is the only that auto scales images
			if (capability == NotificationCapability.positioning)
				return !ServerIsNotifyOSD ();
			else if (capability == NotificationCapability.scaling)
				return ServerIsNotifyOSD ();
			
			return Array.IndexOf (LibNotify.Global.Capabilities, Enum.GetName (typeof (NotificationCapability), capability)) > -1;
		}