MCPcopy Create free account
hub / github.com/Entware/Entware / main

Function main

scripts/config/qconf.cc:1884–1928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1882}
1883
1884int main(int ac, char** av)
1885{
1886 ConfigMainWindow* v;
1887 const char *name;
1888
1889 progname = av[0];
1890 if (ac > 1 && av[1][0] == '-') {
1891 switch (av[1][1]) {
1892 case 's':
1893 conf_set_message_callback(NULL);
1894 break;
1895 case 'h':
1896 case '?':
1897 usage();
1898 }
1899 name = av[2];
1900 } else
1901 name = av[1];
1902 if (!name)
1903 usage();
1904
1905 conf_parse(name);
1906 fixup_rootmenu(&rootmenu);
1907 conf_read(NULL);
1908 //zconfdump(stdout);
1909
1910 configApp = new QApplication(ac, av);
1911
1912 configSettings = new ConfigSettings();
1913 configSettings->beginGroup("/kconfig/qconf");
1914 v = new ConfigMainWindow();
1915
1916 //zconfdump(stdout);
1917 configApp->connect(configApp, SIGNAL(lastWindowClosed()), SLOT(quit()));
1918 configApp->connect(configApp, SIGNAL(aboutToQuit()), v, SLOT(saveSettings()));
1919 v->show();
1920 configApp->exec();
1921
1922 configSettings->endGroup();
1923 delete configSettings;
1924 delete v;
1925 delete configApp;
1926
1927 return 0;
1928}

Callers

nothing calls this directly

Calls 5

conf_parseFunction · 0.85
fixup_rootmenuFunction · 0.85
conf_readFunction · 0.85
usageFunction · 0.70

Tested by

no test coverage detected