return peerInfoList;
}
- public void SetOndemandLaunchEnabled(bool enable)
- {
- Interop.AittPlugin.ErrorCode ret = Interop.AittPluginServer.AittPluginServerSetOnDemandLaunchEnabled(_handle, enable);
- if (ret != Interop.AittPlugin.ErrorCode.None)
- {
- throw AittPluginErrorFactory.GetException(ret, "Failed to set ondemand launch enable");
- }
- }
-
protected abstract void OnConnectionResult(PeerInfo peerInfo, ConnectionResult result);
protected abstract byte[] OnDataReceived(byte[] data, PeerInfo peerInfo);
protected abstract void OnPayloadReceived(Payload data, PeerInfo peerInfo, PayloadTransferStatus status);
[DllImport(Libraries.AittPlugin, EntryPoint = "aitt_plugin_server_remove_disconnected_cb")]
internal static extern ErrorCode AittPluginServerRemoveDisconnectedCb(ServerSafeHandle server, AittPluginServerDisconnectedCb cb);
- [DllImport(Libraries.AittPlugin, EntryPoint = "aitt_plugin_server_set_on_demand_launch_enabled")]
- internal static extern ErrorCode AittPluginServerSetOnDemandLaunchEnabled(ServerSafeHandle server, bool enable);
-
[DllImport(Libraries.AittPlugin, EntryPoint = "aitt_plugin_server_set_display_name")]
internal static extern ErrorCode AittPluginServerSetDisplayName(ServerSafeHandle server, string displayName);
}
GenShareFile(stream, iface, false);
GenCtor(stream, iface);
GenCommonMethods(stream);
+ GenExtraMethods(stream);
});
}
stream << CB_COMMON_METHODS;
}
+void CsCionStubGen::GenExtraMethods(std::ofstream& stream) {
+ stream << GetTransportable().Cs().GenServerExtraBody();
+}
+
} // namespace tidl
void GenDisconnectedEvent(std::ofstream& stream);
void GenCtor(std::ofstream& stream, const Interface& iface);
void GenCommonMethods(std::ofstream& stream);
+ void GenExtraMethods(std::ofstream& stream);
void GenDeclarations(std::ofstream& stream, const Declarations& decls);
void GenSyncInvocation(std::ofstream& stream, const Declaration& decl);
void GenAsyncInvocation(std::ofstream& stream, const Declaration& decl);
}
/// <summary>
- /// Sets ondemand launch enabled flag.
- /// </summary>
- /// <param name="enable">Whether ondemand launch is enabled or not.</param>
- /// <exception cref="UnauthorizedAccessException">
- /// Thrown when an application does not have the privilege to access this method.
- /// </exception>
- /// <privilege>http://tizen.org/privilege/d2d.remotelaunch</privilege>
- public new void SetOndemandLaunchEnabled(bool enable)
- {
- base.SetOndemandLaunchEnabled(enable);
- }
-
- /// <summary>
/// Gets service objects which are connected
/// </summary>
/// <returns>The enumerable service objects which are connected</returns>
}
)__cs_cb";
-
constexpr const char CB_INVOCATION_RESULT_PRE[] =
R"__cs_cb(
result.WriteInt((int)MethodId.__Result);
}
)__cs_cb";
+constexpr const char __SERVER_EXTRA_METHOD[] =
+R"__cs_cb(
+ /// <summary>
+ /// Sets ondemand launch enabled flag.
+ /// </summary>
+ /// <param name="enable">Whether ondemand launch is enabled or not.</param>
+ /// <exception cref="UnauthorizedAccessException">
+ /// Thrown when an application does not have the privilege to access this method.
+ /// </exception>
+ /// <privilege>http://tizen.org/privilege/d2d.remotelaunch</privilege>
+ public new void SetOndemandLaunchEnabled(bool enable)
+ {
+ base.SetOndemandLaunchEnabled(enable);
+ }
+)__cs_cb";
+
constexpr int TAB_SIZE = 2;
} // namespace
}
std::string DefaultCsTransportable::GenServerExtraBody() const {
- return "";
+ return __SERVER_EXTRA_METHOD;
}
std::string DefaultCsTransportable::GenPayloadTypeData() const {