コード例 #1
0
        public ObjectPath CreatePlaylistProvider(int id)
        {
            if (activity == null || !permission_granted)
            {
                return(new ObjectPath(""));
            }

            PlaylistProvider provider = new PlaylistProvider(activity, id);

            activity.RegisterDBusObject(provider, provider.ObjectPath);
            return(new ObjectPath(provider.ObjectPath));
        }
コード例 #2
0
        public ObjectPath CreatePlaylistProvider (int id)
        {
            if (activity == null || !permission_granted) {
                return new ObjectPath ("");
            }

            PlaylistProvider provider = new PlaylistProvider (activity, id);
            activity.RegisterDBusObject (provider, provider.ObjectPath);
            return new ObjectPath (provider.ObjectPath);
        }