Exemple #1
0
void PCloudApp::logOut(){
    loggedin=false;
#ifdef Q_OS_WIN
    if (notifythread){
        notifythread->terminate();
        notifythread->wait();
        delete notifythread;
        notifythread = NULL;
    }
#endif
    username="";
    userid=0;
    tray->setContextMenu(notloggedmenu);
    tray->setToolTip("pCloud");
    tray->setIcon(QIcon(OFFLINE_ICON));
    pCloudWin->setOnlineItems(false);
    pCloudWin->hide();
    settings->unset("auth");
    this->authentication = "";
    unMount();
}
ConfigHandler_unix::~ConfigHandler_unix()
{
    unMount();
}
Exemple #3
0
void PCloudApp::doExit(){
    unMount();
    quit();
}