Exemplo n.º 1
0
 //+---------------------------------------------------------------------------
 //
 //  function:   setAutoCreateAccountOnConnect
 //
 //  Synopsis:   sets the valus of AutoCreateAccountonConnect according to bState value
 //
 //  Arguments:  [pFaxConfiguration] - FaxConfiguration object pointing to the configuration of the current server
 //                [bState] -    bool value set to true or false
 //
 //  Returns:    bool: true if passed successfully
 //
 //----------------------------------------------------------------------------
 static bool setAutoCreateAccountOnConnect(IFaxConfiguration objFaxConfiguration, bool bState)
 {
     //check for NULL
     if (objFaxConfiguration == null)
     {
         System.Console.WriteLine("setAutoCreateAccountOnConnect: Parameter passed is NULL");
         return(false);
     }
     objFaxConfiguration.Refresh();
     //Set the configuration object
     objFaxConfiguration.AutoCreateAccountOnConnect = bState;
     //Save it
     objFaxConfiguration.Save();
     return(true);
 }
Exemplo n.º 2
0
 //+---------------------------------------------------------------------------
 //
 //  function:   setBranding
 //
 //  Synopsis:   sets the valus of Branding according to bState value
 //
 //  Arguments:  [pFaxConfiguration] - FaxConfiguration object pointing to the configuration of the current server
 //                [bState] -    bool value set to true or false
 //
 //  Returns:    bool: true if passed successfully
 //
 //----------------------------------------------------------------------------
 static bool setBranding(IFaxConfiguration objFaxConfiguration, bool bState)
 {
     //check for NULL
     if (objFaxConfiguration == null)
     {
         System.Console.WriteLine("setBranding: Parameter passed is NULL");
         return(false);
     }
     objFaxConfiguration.Refresh();
     //Set the configuration object
     objFaxConfiguration.Branding = bState;
     //Save it
     objFaxConfiguration.Save();
     return(true);
 }
Exemplo n.º 3
0
 //+---------------------------------------------------------------------------
 //
 //  function:   setAllowPersonalCoverPages
 //
 //  Synopsis:   sets the valus of AllowPersonalCoverPages according to bState value
 //
 //  Arguments:  [pFaxConfiguration] - FaxConfiguration object pointing to the configuration of the current server
 //                [bState] -    bool value set to true or false
 //
 //  Returns:    bool: true if passed successfully
 //
 //----------------------------------------------------------------------------
 static bool setAllowPersonalCoverPages(IFaxConfiguration objFaxConfiguration, bool bState)
 {
     //check for NULL
     if (objFaxConfiguration == null)
     {
         System.Console.WriteLine("setAllowPersonalCoverPages: Parameter passed is NULL");
         return(false);
     }
     objFaxConfiguration.Refresh();
     //Set the configuration object
     objFaxConfiguration.AllowPersonalCoverPages = bState;
     //Save it
     objFaxConfiguration.Save();
     return(true);
 }
 //+---------------------------------------------------------------------------
 //
 //  function:   setIncomingFaxesArePublic
 //
 //  Synopsis:   sets the valus of IncomingFaxArePublic according to bState value
 //
 //  Arguments:  [pFaxConfiguration] - FaxConfiguration object pointing to the configuration of the current server
 //                [bState] -    bool value set to true or false
 //
 //  Returns:    bool: true if passed successfully
 //
 //----------------------------------------------------------------------------
 static bool setIncomingFaxesArePublic(IFaxConfiguration objFaxConfiguration, bool bState )
 {
     //check for NULL
                 if (objFaxConfiguration == null)
                 {
                         System.Console.WriteLine("setIncomingFaxesArePublic: Parameter passed is NULL");
                         return false;
                 }
                 objFaxConfiguration.Refresh();
                 //Set the configuration object
                 objFaxConfiguration.IncomingFaxesArePublic = bState;
                 //Save it
                 objFaxConfiguration.Save();
                 return true;
 }
 //+---------------------------------------------------------------------------
 //
 //  function:   setAutoCreateAccountOnConnect
 //
 //  Synopsis:   sets the valus of AutoCreateAccountonConnect according to bState value
 //
 //  Arguments:  [pFaxConfiguration] - FaxConfiguration object pointing to the configuration of the current server
 //                [bState] -    bool value set to true or false
 //
 //  Returns:    bool: true if passed successfully
 //
 //----------------------------------------------------------------------------
 static bool setAutoCreateAccountOnConnect(IFaxConfiguration objFaxConfiguration, bool bState )
 {
     //check for NULL
                 if (objFaxConfiguration == null)
                 {
                         System.Console.WriteLine("setAutoCreateAccountOnConnect: Parameter passed is NULL");
                         return false;
                 }
                 objFaxConfiguration.Refresh();
                 //Set the configuration object
                 objFaxConfiguration.AutoCreateAccountOnConnect = bState;
                 //Save it
                 objFaxConfiguration.Save();
                 return true;
 }
 //+---------------------------------------------------------------------------
 //
 //  function:   setAllowPersonalCoverPages
 //
 //  Synopsis:   sets the valus of AllowPersonalCoverPages according to bState value
 //
 //  Arguments:  [pFaxConfiguration] - FaxConfiguration object pointing to the configuration of the current server
 //                [bState] -    bool value set to true or false
 //
 //  Returns:    bool: true if passed successfully
 //
 //----------------------------------------------------------------------------
 static bool setAllowPersonalCoverPages(IFaxConfiguration objFaxConfiguration, bool bState )
 {
     //check for NULL
                 if (objFaxConfiguration == null)
                 {
                         System.Console.WriteLine("setAllowPersonalCoverPages: Parameter passed is NULL");
                         return false;
                 }
                 objFaxConfiguration.Refresh();
                 //Set the configuration object
                 objFaxConfiguration.AllowPersonalCoverPages = bState;
                 //Save it
                 objFaxConfiguration.Save();
                 return true;
 }
        //+---------------------------------------------------------------------------
        //
        //  function:   PrintGeneralConfig
        //
        //  Synopsis:   prints the Server Configuration (PersonalCoverPages, Branding, IncomingFaxPublic and AutoCreateOnConnect)
        //
        //  Arguments:  [pFaxConfiguration] - FaxConfiguration object pointing to the configuration of the current server
        //
        //  Returns:    bool: true if passed successfully
        //
        //----------------------------------------------------------------------------
        static bool PrintGeneralConfig(IFaxConfiguration objFaxConfiguration)
        {
            bool bRetVal = true;
                        bool bValue = false;

                        //check for NULL
                        if (objFaxConfiguration == null)
                        {
                                System.Console.WriteLine("PrintGeneralConfig: Parameter passed is NULL");
                                return false;
                        }
                        System.Console.WriteLine();
                        System.Console.WriteLine("Logging Gerneral Config details....");
                        System.Console.WriteLine();

                        objFaxConfiguration.Refresh();
                        bValue = objFaxConfiguration.AllowPersonalCoverPages;

                        if(bValue)
                                System.Console.WriteLine("AllowPersonalCoverPages = true");
                        else
                                System.Console.WriteLine("AllowPersonalCoverPages = false");

                        bValue = objFaxConfiguration.AutoCreateAccountOnConnect;
                        if(bValue)
                                System.Console.WriteLine("AutoCreateOnConnect = true");
                        else
                                System.Console.WriteLine("AutoCreateOnConnect = false");

                        bValue = objFaxConfiguration.Branding;

                        if(bValue)
                                System.Console.WriteLine("Branding = true");
                        else
                                System.Console.WriteLine("Branding = false");

                        bValue = objFaxConfiguration.IncomingFaxesArePublic;

                        if(bValue)
                                System.Console.WriteLine("IncomingFaxesArePublic = true");
                        else
                                System.Console.WriteLine("IncomingFaxesArePublic = false");

                        return bRetVal;
        }
Exemplo n.º 8
0
        //+---------------------------------------------------------------------------
        //
        //  function:   PrintGeneralConfig
        //
        //  Synopsis:   prints the Server Configuration (PersonalCoverPages, Branding, IncomingFaxPublic and AutoCreateOnConnect)
        //
        //  Arguments:  [pFaxConfiguration] - FaxConfiguration object pointing to the configuration of the current server
        //
        //  Returns:    bool: true if passed successfully
        //
        //----------------------------------------------------------------------------
        static bool PrintGeneralConfig(IFaxConfiguration objFaxConfiguration)
        {
            bool bRetVal = true;
            bool bValue  = false;

            //check for NULL
            if (objFaxConfiguration == null)
            {
                System.Console.WriteLine("PrintGeneralConfig: Parameter passed is NULL");
                return(false);
            }
            System.Console.WriteLine();
            System.Console.WriteLine("Logging Gerneral Config details....");
            System.Console.WriteLine();

            objFaxConfiguration.Refresh();
            bValue = objFaxConfiguration.AllowPersonalCoverPages;

            if (bValue)
            {
                System.Console.WriteLine("AllowPersonalCoverPages = true");
            }
            else
            {
                System.Console.WriteLine("AllowPersonalCoverPages = false");
            }

            bValue = objFaxConfiguration.AutoCreateAccountOnConnect;
            if (bValue)
            {
                System.Console.WriteLine("AutoCreateOnConnect = true");
            }
            else
            {
                System.Console.WriteLine("AutoCreateOnConnect = false");
            }

            bValue = objFaxConfiguration.Branding;

            if (bValue)
            {
                System.Console.WriteLine("Branding = true");
            }
            else
            {
                System.Console.WriteLine("Branding = false");
            }

            bValue = objFaxConfiguration.IncomingFaxesArePublic;

            if (bValue)
            {
                System.Console.WriteLine("IncomingFaxesArePublic = true");
            }
            else
            {
                System.Console.WriteLine("IncomingFaxesArePublic = false");
            }

            return(bRetVal);
        }