// // openmapi.org - NMapi C# Mapi API - IInternalCalls.cs // // Copyright 2008 Topalis AG // // Author: Johannes Roith // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // using System; using NMapi.Admin; using NMapi.Tools.Shell; namespace NMapi.Server.ICalls { /// /// This interface is used by the ASP.NET web interface to talk /// back to the proxy session (that started it). /// public interface IInternalCalls { /// /// Returns true if the correct password is supplied. /// bool AuthenticateAdmin (string password); /// /// Call when the user logged in successfully. /// void RegisterLogin (); /// /// Returns a reference to the session manager. /// ISessionManager SessionManager { get; } /// /// /// IMapiShell CreateNewShell (); /// /// /// string FlushShellOutputBuffer (IMapiShell shell); /// /// /// IMapiAdmin GetMapiAdmin (int backendId); /// /// Information on the executing proxy process. /// ProxyInformation ProxyInformation { get; } /// /// The Version of the proxy. /// string Version { get; } /// /// /// string[] ModuleNames { get; } /// /// Restarts the server. /// void Restart (); } }