Changeset View
Changeset View
Standalone View
Standalone View
src/core/ruqola.cpp
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | * Copyright 2016 Riccardo Iaconelli <riccardo@kde.org> | 3 | * Copyright 2016 Riccardo Iaconelli <riccardo@kde.org> | ||
4 | * | 4 | * | ||
5 | * This program is free software; you can redistribute it and/or | 5 | * This program is free software; you can redistribute it and/or | ||
6 | * modify it under the terms of the GNU General Public License as | 6 | * modify it under the terms of the GNU General Public License as | ||
7 | * published by the Free Software Foundation; either version 2 of | 7 | * published by the Free Software Foundation; either version 2 of | ||
8 | * the License or (at your option) version 3 or any later version | 8 | * the License or (at your option) version 3 or any later version | ||
9 | * accepted by the membership of KDE e.V. (or its successor approved | 9 | * accepted by the membership of KDE e.V. (or its successor approved | ||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | |||||
52 | { | 52 | { | ||
53 | //Initialize paths | 53 | //Initialize paths | ||
54 | (void)ManagerDataPaths::self(); | 54 | (void)ManagerDataPaths::self(); | ||
55 | mAccountManager = new AccountManager(this); | 55 | mAccountManager = new AccountManager(this); | ||
56 | connect(mAccountManager, &AccountManager::updateNotification, this, &Ruqola::updateNotification); | 56 | connect(mAccountManager, &AccountManager::updateNotification, this, &Ruqola::updateNotification); | ||
57 | connect(mAccountManager, &AccountManager::logoutAccountDone, this, &Ruqola::logout); | 57 | connect(mAccountManager, &AccountManager::logoutAccountDone, this, &Ruqola::logout); | ||
58 | } | 58 | } | ||
59 | 59 | | |||
60 | void Ruqola::setCurrentAccount(const QString &accountName) | 60 | void Ruqola::setCurrentAccount(const QString &accountName, bool showLastRoom) | ||
61 | { | 61 | { | ||
62 | mAccountManager->setCurrentAccount(accountName); | 62 | mAccountManager->setCurrentAccount(accountName, showLastRoom); | ||
63 | } | 63 | } | ||
64 | 64 | | |||
65 | AccountManager *Ruqola::accountManager() const | 65 | AccountManager *Ruqola::accountManager() const | ||
66 | { | 66 | { | ||
67 | return mAccountManager; | 67 | return mAccountManager; | ||
68 | } | 68 | } | ||
69 | 69 | | |||
70 | KAboutData Ruqola::applicationData() const | 70 | KAboutData Ruqola::applicationData() const | ||
Show All 35 Lines |