Skip to content
  • QtService replacement

    Solved General and Desktop qtservice
    15
    0 Votes
    15 Posts
    8k Views
    kshegunovK
    @SGaist Well, I followed your suggestion and have used override and nullptr at the appropriate places (removed the virtual as well). I also have added the template scripts, implemented the --install, --uninstall options and as a whole I managed to finish the Linux implementation. Also I decided to add one --fake command line option that allows the daemon process to be debugged (it doesn't start the backend thus is not detaching from the terminal, it still emits the daemonized() signal though). More suggestions and comments are (still) welcome.
  • 0 Votes
    27 Posts
    13k Views
    P
    @Stoyan error: passing 'const Operation' as 'this' argument of 'int Operation::setAttribute(QString, QString)' discards qualifiers [-fpermissive] operations.at(i).setAttribute(Aname,Value); Не мога да разбера защо се получава това съобщение в Task класа, опитвайки се да извикам метода SetAttribute за операция във вектора. Const Operation не знам откъде идва вътре в тази функция конкретно, след като подавам само id-то на операцията. Подобна е грешката и при Task сетване на атрибут: scheduledtopservice\scheduler.cpp:31: error: passing 'const Task' as 'this' argument of 'int Task::setAttribute(QString, QString)' discards qualifiers [-fpermissive] tasks.at(k).setAttribute("state","running"); ПП: Успях да го реша проблема. Разбрах че .at() връща const обект, затова използвах [i] за индекс. task.cpp:17: warning: base class 'class BaseObject' should be explicitly initialized in the copy constructor [-Wextra] Task::Task(const Task &obj) Това как мога да го оправя, четох че създавало още 1 копие на BaseObject така. Но не е като експлицитния конструктор сякаш : BaseObject ( const BaseObject &obj) ако долепя до Copy конструктора на Task. Не съм сигурен, но май просто като сложих : BaseObject() и се изчисти предупреждението. Така ли трябвa да бъде ?
  • [Solved] (patching QtService) QtService dependencies

    Unsolved General and Desktop qtservice
    9
    0 Votes
    9 Posts
    3k Views
    mrdebugM
    It was more easy to patch instead of to submit the patch.