FACT++  1.0
int main ( int  argc,
const char *  argv[] 
)

Definition at line 761 of file skypeclient.cc.

References Configuration::DoParse(), Configuration::Get(), Configuration::Has(), PrintHelp(), PrintUsage(), Configuration::SetPrintUsage(), Main::SetupConfiguration(), and SetupConfiguration().

762 {
763  Configuration conf(argv[0]);
764  conf.SetPrintUsage(PrintUsage);
766  SetupConfiguration(conf);
767 
768  if (!conf.DoParse(argc, argv, PrintHelp))
769  return 127;
770 
771  // No console access at all
772  if (!conf.Has("console"))
773  return Main::execute<LocalStream, SkypeClient>(conf);
774 
775  if (conf.Get<int>("console")==0)
776  return Main::execute<LocalShell, SkypeClient>(conf);
777  else
778  return Main::execute<LocalConsole, SkypeClient>(conf);
779 
780  return 0;
781 }
void SetupConfiguration(Configuration &conf)
Definition: Main.h:25
void PrintUsage()
Definition: skypeclient.cc:737
void SetupConfiguration(Configuration &conf)
Definition: skypeclient.cc:715
void PrintHelp()
Definition: skypeclient.cc:752
Commandline parsing, resource file parsing and database access.
Definition: Configuration.h:9

+ Here is the call graph for this function: