6#include <imtbase/Init.h>
7#include <imtlic/IProductInfo.h>
10template <
class ApplicationComposite,
class AppInitializer,
void (*ProductFiller)(imtlic::IProductInfo&) =
nullptr,
bool autoInit = false>
11int ProductFeatureRun(
int argc,
char* argv[])
13 AppInitializer::Init();
15 QDirIterator dirIter(
":/Style");
16 while (dirIter.hasNext()){
17 qDebug() << dirIter.filePath();
22 QDirIterator dirIter3(
":/Icons");
23 while (dirIter3.hasNext()){
24 qDebug() << dirIter3.filePath();
29 QDirIterator dirIter2(
":/Styles");
30 while (dirIter2.hasNext()){
31 qDebug() << dirIter2.filePath();
36 ApplicationComposite instance;
39 instance.EnsureAutoInitComponentsCreated();
42 ibase::IApplication* applicationPtr = instance.template GetInterface<ibase::IApplication>();
43 if (applicationPtr !=
nullptr){
45 if (productInfoPtr !=
nullptr && ProductFiller !=
nullptr){
46 ProductFiller(*productInfoPtr);
49 return applicationPtr->Execute(argc, argv);
Interface for accessing information about a product (software or hardware).