Presenter::Presenter(QObject *parent) : QObject(parent){ m_window.reset(new MainWindow(nullptr)); QObject::connect(m_window.get(), &MainWindow::SingIn, this, &Presenter::SlotStartPostingVK); m_window->show();}
void Presenter::SlotStartPostingVK(const QString & message){ m_auth_VK.reset(new VkAuth()); m_auth_VK->SetMessage(message); m_auth_VK->FillingOfGroups(); QObject::connect(m_auth_VK.get(), &VkAuth::SignalGetErrorStr, this, &Presenter::SlotCallErrorMSG); QObject::connect(m_auth_VK.get(), &VkAuth::SignalFinishPosting, this, &Presenter::SlotStartPostingOK);}