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;
 }