/*------------------------------------------------------------------------ * (The MIT License) * * Copyright (c) 2008-2011 Rhomobile, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * * http://rhomobile.com *------------------------------------------------------------------------*/ using Microsoft.Scripting.Utils; using Microsoft.Scripting.Runtime; using IronRuby.Runtime; using IronRuby.Builtins; using System; using System.Runtime.InteropServices; namespace rho.rubyext { [RubyModule("SyncEngine")] public static class RhoSyncEngine { [RubyMethod("dosync", RubyMethodAttributes.PublicSingleton)] public static object dosync(RubyModule/*!*/ self) { return null; } [RubyMethod("dosync", RubyMethodAttributes.PublicSingleton)] public static object dosync(RubyModule/*!*/ self, bool/*!*/ show_status_popup) { return null; } [RubyMethod("dosync_source", RubyMethodAttributes.PublicSingleton)] public static object dosync_source(RubyModule/*!*/ self, [NotNull]object/*!*/ srcID) { return null; } [RubyMethod("dosync_source", RubyMethodAttributes.PublicSingleton)] public static object dosync_source(RubyModule/*!*/ self, [NotNull]object/*!*/ srcID, bool/*!*/ show_status_popup) { return null; } [RubyMethod("dosearch", RubyMethodAttributes.PublicSingleton)] public static object dosearch(RubyModule/*!*/ self, [NotNull]RubyArray/*!*/ arSources, [NotNull]String/*!*/ from, [NotNull]String/*!*/ strParams, [NotNull]bool/*!*/ bSearchSyncChanges, [NotNull]int/*!*/ nProgressStep, [NotNull]String/*!*/ strCallback, [NotNull]String/*!*/ strCallbackParams ) { return null; } [RubyMethod("logged_in", RubyMethodAttributes.PublicSingleton)] public static int logged_in(RubyModule/*!*/ self) { return 0; } [RubyMethod("login", RubyMethodAttributes.PublicSingleton)] public static object login(RubyModule/*!*/ self, [NotNull]String/*!*/ login, [NotNull]String/*!*/ pwd, [NotNull]String/*!*/ callback) { return null; } [RubyMethod("set_notification", RubyMethodAttributes.PublicSingleton)] public static void set_notification(RubyModule/*!*/ self, [NotNull]int/*!*/ srcID, [NotNull]String/*!*/ url, string/*!*/ callback_param) { } [RubyMethod("enable_status_popup", RubyMethodAttributes.PublicSingleton)] public static void enable_status_popup(RubyModule/*!*/ self, bool/*!*/ enable) { } [RubyMethod("is_blob_attr", RubyMethodAttributes.PublicSingleton)] public static bool is_blob_attr(RubyModule/*!*/ self, [NotNull]String/*!*/ szPartition, [NotNull]int/*!*/ srcID, [NotNull]String/*!*/ szAttrName) { return false; } [RubyMethod("update_blob_attribs", RubyMethodAttributes.PublicSingleton)] public static void update_blob_attribs(RubyModule/*!*/ self, [NotNull]String/*!*/ szPartition, [NotNull]int/*!*/ srcID) { } [RubyMethod("set_threaded_mode", RubyMethodAttributes.PublicSingleton)] public static void set_threaded_mode(RubyModule/*!*/ self, [NotNull]bool/*!*/ bThreadMode) { } [RubyMethod("logout", RubyMethodAttributes.PublicSingleton)] public static void logout(RubyModule/*!*/ self) { } [RubyMethod("set_syncserver", RubyMethodAttributes.PublicSingleton)] public static void set_syncserver(RubyModule/*!*/ self, [NotNull]String/*!*/ syncserver) { } [RubyMethod("set_pollinterval", RubyMethodAttributes.PublicSingleton)] public static int set_pollinterval(RubyModule/*!*/ self, [NotNull]int/*!*/ nInterval) { return 0; } [RubyMethod("stop_sync", RubyMethodAttributes.PublicSingleton)] public static void stop_sync(RubyModule/*!*/ self) { } [RubyMethod("is_syncing", RubyMethodAttributes.PublicSingleton)] public static bool is_syncing(RubyModule/*!*/ self) { return false; } [RubyMethod("set_source_property", RubyMethodAttributes.PublicSingleton)] public static void set_source_property(RubyModule/*!*/ self, [NotNull]int/*!*/ srcID, [NotNull]String/*!*/ szPropName, [NotNull]String/*!*/ szPropValue ) { } [RubyMethod("set_objectnotify_url", RubyMethodAttributes.PublicSingleton)] public static void set_objectnotify_url(RubyModule/*!*/ self, [NotNull]string/*!*/ url) { } [RubyMethod("add_objectnotify", RubyMethodAttributes.PublicSingleton)] public static void add_objectnotify(RubyModule/*!*/ self, [NotNull]int/*!*/ srcID, [NotNull]string/*!*/ obj) { } [RubyMethod("clean_objectnotify", RubyMethodAttributes.PublicSingleton)] public static void clean_objectnotify(RubyModule/*!*/ self) { } } }