"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gui/libcloudproviders/libcloudproviders.cpp" between
ownCloud-2.9.0.5150.tar.xz and ownCloud-2.9.1.5500.tar.xz

About: ownCloud Client (formerly "mirall") is a tool to synchronize files from ownCloud Server with your desktop client. It uses OCSync as its syncing backend.

libcloudproviders.cpp  (ownCloud-2.9.0.5150.tar.xz):libcloudproviders.cpp  (ownCloud-2.9.1.5500.tar.xz)
skipping to change at line 15 skipping to change at line 15
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, but * This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details. * for more details.
*/ */
extern "C" { #include <cloudproviders/cloudprovidersaccountexporter.h>
#include <cloudproviders/cloudprovidersaccountexporter.h> #include <cloudproviders/cloudprovidersproviderexporter.h>
#include <cloudproviders/cloudprovidersproviderexporter.h> #include <gio/gio.h>
#include <gio/gio.h> #include <glib.h>
#include <glib.h>
}
#include "libcloudproviders.h" #include "libcloudproviders.h"
#include "libcloudproviders_p.h" #include "libcloudproviders_p.h"
#include <QMap> #include <QMap>
#include "folder.h" #include "folder.h"
#include "folderman.h" #include "folderman.h"
#include "theme.h" #include "theme.h"
#include "accountstate.h" #include "accountstate.h"
#include "config.h" #include "config.h"
skipping to change at line 87 skipping to change at line 85
auto folderMan = FolderMan::instance(); auto folderMan = FolderMan::instance();
connect(folderMan, &FolderMan::folderListChanged, connect(folderMan, &FolderMan::folderListChanged,
this, &LibCloudProvidersPrivate::updateExportedFolderList); this, &LibCloudProvidersPrivate::updateExportedFolderList);
connect(folderMan, &FolderMan::folderSyncStateChange, connect(folderMan, &FolderMan::folderSyncStateChange,
this, &LibCloudProvidersPrivate::updateFolderExport); this, &LibCloudProvidersPrivate::updateFolderExport);
} }
void LibCloudProvidersPrivate::updateExportedFolderList() void LibCloudProvidersPrivate::updateExportedFolderList()
{ {
const auto newFolders = FolderMan::instance()->list(); const auto newFolders = FolderMan::instance()->map().values();
const auto oldFolders = _folderExports.keys(); const auto oldFolders = _folderExports.keys();
// Remove folders that are no longer exported // Remove folders that are no longer exported
for (const auto old : oldFolders) { for (const auto old : oldFolders) {
if (!newFolders.contains(old)) if (!newFolders.contains(old))
unexportFolder(old); unexportFolder(old);
} }
// Add new folders // Add new folders
for (const auto n : newFolders) { for (const auto n : newFolders) {
 End of changes. 2 change blocks. 
7 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)