/// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Owner virtual server.</param>
        internal GlobalMessageRuleCollection(VirtualServer virtualServer)
        {
            m_pVirtualServer      = virtualServer;
            m_pGlobalMessageRules = new List<GlobalMessageRule>();

            Bind();
        }
Beispiel #2
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Owner virtual server.</param>
        public DomainCollection(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;
            m_pDomains       = new List<Domain>();

            Bind();
        }
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Owner virtual server.</param>
        public UsersDefaultFolderCollection(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;
            m_pFolders       = new List<UsersDefaultFolder>();

            Bind();
        }
Beispiel #4
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Owner virtual server.</param>
        internal GroupCollection(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;
            m_pGroups        = new List<Group>();

            Bind();
        }
Beispiel #5
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Owner virtual server.</param>
        internal UserCollection(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;
            m_pUsers         = new List<User>();

            Bind();
        }
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="owner">Owner VirtualServer object that owns this collection.</param>
        internal SipRegistrationCollection(VirtualServer owner)
        {
            m_pOwner = owner;
            m_pRegistrations = new List<SipRegistration>();

            Bind();
        }
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Owner virtual server.</param>
        internal SharedRootFolderCollection(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;
            m_pRootFolders   = new List<SharedRootFolder>();

            Bind();
        }
Beispiel #8
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Owner virtual server.</param>
        internal RouteCollection(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;
            m_pRoutes        = new List<Route>();

            Bind();
        }
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Owner virtual server.</param>
        internal FilterCollection(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;
            m_pFilters       = new List<Filter>();

            Bind();
        }
Beispiel #10
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Owner virtual server.</param>
        internal SIP_CallCollection(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;
            m_pCalls         = new List<SIP_Call>();

            Bind();
        }
Beispiel #11
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Owner virtual server.</param>
        internal MailingListCollection(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;
            m_pMailingLists  = new List<MailingList>();

            Bind();
        }
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Virtual server.</param>
        public wfrm_System_Services_Relay(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;

            InitUI();

            foreach(IPAddress ip in virtualServer.Server.IPAddresses){
                if(ip.Equals(IPAddress.Any)){
                    m_pSendingIP.Items.Add(new WComboBoxItem("any IPv4",ip));
                }
                else if(ip.Equals(IPAddress.Loopback)){
                    m_pSendingIP.Items.Add(new WComboBoxItem("localhost IPv4",ip));
                }
                else if(ip.Equals(IPAddress.IPv6Any)){
                    m_pSendingIP.Items.Add(new WComboBoxItem("Any IPv6",ip));
                }
                else if(ip.Equals(IPAddress.IPv6Loopback)){
                    m_pSendingIP.Items.Add(new WComboBoxItem("localhost IPv6",ip));
                }
                else{
                    m_pSendingIP.Items.Add(new WComboBoxItem(ip.ToString(),ip));
                }
            }
            m_pSendingIP.SelectedIndex = 0;

            LoadData();
        }
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Owner virtual server.</param>
        internal IPSecurityCollection(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;
            m_pEntries       = new List<IPSecurity>();

            Bind();
        }
        /// <summary>
        /// Add constructor.
        /// </summary>
        /// <param name="virtualServer">Virtual server.</param>
        public wfrm_SharedFolders_RootFolder(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;

            InitUI();

            m_pRootFolderType.SelectedIndex = 0;
        }
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Virtual server.</param>
        public wfrm_System_Services_IMAP(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;

            InitUI();

            LoadData();
        }
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Virtual server.</param>
        /// <param name="frame"></param>
        public wfrm_Folders_RecycleBin(VirtualServer virtualServer,WFrame frame)
        {
            m_pVirtualServer = virtualServer;

            InitUI();

            LoadSettings();
        }
Beispiel #17
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Virtual server.</param>
        public wfrm_se_FilterType(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;

            InitUI();

            LoadFilters();
        }
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Virtual server.</param>
        public wfrm_System_Authentication(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;

            InitUI();

            LoadData();
        }
Beispiel #19
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Owner virtual server.</param>
        /// <param name="smtp_relay">Specifies if smtp or relay queue collection.</param>
        internal QueueItemCollection(VirtualServer virtualServer,bool smtp_relay)
        {
            m_pVirtualServer = virtualServer;
            m_smtp_relay     = smtp_relay;
            m_pCollection    = new List<QueueItem>();

            Bind();
        }
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Virtual server.</param>
        public wfrm_System_ReturnMessages(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;

            InitUI();

            m_pMessageType.SelectedIndex = 0;
        }
Beispiel #21
0
        /// <summary>
        /// Add new constructor.
        /// </summary>
        /// <param name="serverAPI">Reference to server API.</param>
        public wfrm_MailingList(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;

            InitUI();

            LoadDomains();
        }
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Virtual server.</param>
        public wfrm_System_Services_FetchPOP3(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;

            InitUI();

            LoadData();
        }
Beispiel #23
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Virtual server.</param>
        public wfrm_System_Logging(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;

            InitUI();

            LoadData();
        }
Beispiel #24
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Virtual server.</param>
        public wfrm_System_General(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;

            InitUI();

            LoadData();
        }
Beispiel #25
0
        /// <summary>
        /// Add constructor.
        /// </summary>
        /// <param name="virtualServer">Virtual server.</param>
        public wfrm_Routing_Route(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;

            InitUI();
                        
            m_pAction.SelectedIndex = 0;
        }
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Reference to virtual server.</param>       
        public wfrm_utils_BackupMessages(VirtualServer virtualServer)
        {
            m_pVirtualServer = virtualServer;

            InitUI();

            SwitchStep("destination");
        }
Beispiel #27
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="virtualServer">Reference to owner virtual server.</param>
 /// <param name="service">Service. SMTP,POP3,IMAP,RELAY,FETCH.</param>
 /// <param name="sessionID">Session ID.</param>
 /// <param name="startTime">Session start time.</param>
 /// <param name="remoteEndPoint">Remote end point.</param>
 /// <param name="userName">Authenticated user name.</param>
 internal LogSession(VirtualServer virtualServer,string service,string sessionID,DateTime startTime,IPEndPoint remoteEndPoint,string userName)
 {
     m_pVirtualServer  = virtualServer;
     m_Service         = service;
     m_SessionID       = sessionID;
     m_StartTime       = startTime;
     m_pRemoteEndPoint = remoteEndPoint;
     m_UserName        = userName;
 }
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Virtual server.</param>
        /// <param name="user">User who's recyclebin to show.</param>
        public wfrm_User_Recyclebin(VirtualServer virtualServer,User user)
        {
            m_pVirtualServer = virtualServer;
            m_pUser          = user;

            InitUI();

            LoadData();
        }
Beispiel #29
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Virtual server.</param>
        /// <param name="folder">Folder what messages to show.</param>
        public wfrm_User_FolderMessages(VirtualServer virtualServer,UserFolder folder)
        {
            m_pVirtualServer = virtualServer;
            m_pFolder        = folder;

            InitUI();

            LoadData();
        }
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="virtualServer">Virtual server.</param>
        /// <param name="frame"></param>
        public wfrm_SharedFolders_UserFolders(VirtualServer virtualServer,WFrame frame)
        {   
            m_pVirtualServer = virtualServer;
        
            InitUI();

            // Move toolbar to Frame
            frame.Frame_ToolStrip = m_pToolbar;
        }