Skip to content

Commit

Permalink
Final fix for little version
Browse files Browse the repository at this point in the history
  • Loading branch information
alphaonex86 committed Apr 6, 2018
1 parent 1e50493 commit 77177e4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
12 changes: 11 additions & 1 deletion little/main-little.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ int main(int argc, char *argv[])
qRegisterMetaType<std::string>("std::string");
qRegisterMetaType<std::vector<std::string> >("std::vector<std::string>");
qRegisterMetaType<Ultracopier::DebugLevel>("Ultracopier::DebugLevel");
qRegisterMetaType<Ultracopier::EngineActionInProgress>("Ultracopier::EngineActionInProgress");
qRegisterMetaType<std::vector<Ultracopier::ReturnActionOnCopyList> >("std::vector<Ultracopier::ReturnActionOnCopyList>");
qRegisterMetaType<uint64_t>("uint64_t");
qRegisterMetaType<std::vector<Ultracopier::ProgressionItem> >("std::vector<Ultracopier::ProgressionItem>");

FacilityEngine facilityEngine;
ThemesFactory themesFactory;
Expand All @@ -62,10 +66,15 @@ int main(int argc, char *argv[])
engine=static_cast<CopyEngine *>(copyEngineFactory.getInstance());

connectEngine();
connectInterfaceAndSync();
forUpateInformation.setInterval(ULTRACOPIER_TIME_INTERFACE_UPDATE);
forUpateInformation.start();
QObject::connect(&forUpateInformation, &QTimer::timeout, &periodicSynchronization);

return ultracopierApplication.exec();
const int returnVar=ultracopierApplication.exec();

delete engine;
return returnVar;
}

void connectEngine()
Expand All @@ -75,6 +84,7 @@ void connectEngine()
failed|=!QObject::connect(engine,&CopyEngine::actionInProgess, interface,&Themes::actionInProgess,Qt::QueuedConnection);
failed|=!QObject::connect(engine,&CopyEngine::isInPause, interface,&Themes::isInPause,Qt::QueuedConnection);//to check to change
failed|=!QObject::connect(engine,&CopyEngine::cancelAll, QCoreApplication::instance(),&QCoreApplication::quit,Qt::QueuedConnection);
failed|=!QObject::connect(engine,&CopyEngine::canBeDeleted, QCoreApplication::instance(),&QCoreApplication::quit,Qt::QueuedConnection);
/*failed|=!QObject::connect(engine,&CopyEngine::error, interface,&Themes::error,Qt::QueuedConnection);
failed|=!QObject::connect(engine,&CopyEngine::rmPath, interface,&Themes::rmPath,Qt::QueuedConnection);
failed|=!QObject::connect(engine,&CopyEngine::mkPath, interface,&Themes::mkPath,Qt::QueuedConnection);
Expand Down
4 changes: 2 additions & 2 deletions other-pro/ultracopier-little.pro
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ SOURCES += \
../plugins/Themes/Oxygen/ThemesFactory.cpp \
../plugins/Themes/Oxygen/TransferModel.cpp \
../plugins/Themes/Oxygen/interface.cpp \
OptionsEngineLittle.cpp \
../little/OptionsEngineLittle.cpp \
../FacilityEngine.cpp \
../cpp11addition.cpp \
../cpp11additionstringtointcpp.cpp
Expand Down Expand Up @@ -108,7 +108,7 @@ HEADERS += \
../plugins/Themes/Oxygen/interface.h \
../plugins/Themes/Oxygen/DebugEngineMacro.h \
../plugins/Themes/Oxygen/Environment.h \
OptionsEngineLittle.h \
../little/OptionsEngineLittle.h \
../FacilityEngine.h \
../Variable.h \
../interface/FacilityInterface.h \
Expand Down

0 comments on commit 77177e4

Please sign in to comment.