~ubuntu-branches/ubuntu/vivid/kdepim/vivid

« back to all changes in this revision

Viewing changes to backupmail/exportmailjob.h

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman, Jonathan Riddell, Rohan Garg, Scott Kitterman
  • Date: 2012-11-21 13:12:36 UTC
  • mfrom: (0.2.33)
  • Revision ID: package-import@ubuntu.com-20121121131236-32ijw9a2txrar80k
Tags: 4:4.9.80-0ubuntu1
[ Jonathan Riddell ]
* New upstream beta release

[ Rohan Garg ]
* Add nepomuk-core-dev to build-deps

[ Scott Kitterman ]
* Add new package, libpimcommon4
  - Add libpimcommon4.install
  - Add to debian/control, including kdepim-dbg and kdepim-dev depends
  - Add to kdepim-dev.install
* Remove usr/bin/backupmail and related files from kmail.install as they are
  not provided by upstream anymore
* Add usr/bin/pimsettingexporter and related files to kmail.install
* Add libnepomukwidgets-dev to build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
  Copyright (c) 2012 Montel Laurent <montel@kde.org>
3
 
 
4
 
  This program is free software; you can redistribute it and/or modify it
5
 
  under the terms of the GNU General Public License, version 2, as
6
 
  published by the Free Software Foundation.
7
 
 
8
 
  This program is distributed in the hope that it will be useful, but
9
 
  WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11
 
  General Public License for more details.
12
 
 
13
 
  You should have received a copy of the GNU General Public License along
14
 
  with this program; if not, write to the Free Software Foundation, Inc.,
15
 
  51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
16
 
*/
17
 
 
18
 
#ifndef ExportMailJob_H
19
 
#define ExportMailJob_H
20
 
 
21
 
#include "abstractimportexportjob.h"
22
 
#include <KSharedConfig>
23
 
class KUrl;
24
 
 
25
 
namespace Akonadi {
26
 
  class AgentInstance;
27
 
}
28
 
 
29
 
class ExportMailJob : public AbstractImportExportJob
30
 
{
31
 
public:
32
 
  explicit ExportMailJob(QWidget *parent, BackupMailUtil::BackupTypes typeSelected, const QString& filename, int numberOfStep);
33
 
  ~ExportMailJob();
34
 
  void start();
35
 
 
36
 
private:
37
 
  void startBackup();
38
 
 
39
 
  KUrl subdirPath(const KUrl &url ) const;
40
 
 
41
 
  void backupTransports();
42
 
  void backupResources();
43
 
  void backupMails();
44
 
  void backupConfig();
45
 
  void backupIdentity();
46
 
  void backupAkonadiDb();
47
 
  void backupNepomuk();
48
 
  void writeDirectory(QString path, const QString &relativePath, KZip *mailArchive);
49
 
  void storeResources(const QString&identifier, const QString& path);
50
 
  KUrl resourcePath(const Akonadi::AgentInstance& agent) const;
51
 
  void backupFile(const QString&filename, const QString& path, const QString&storedName);
52
 
  bool backupMailData(const KUrl& url, const QString& archivePath);
53
 
 
54
 
};
55
 
 
56
 
#endif // ExportMailJob_H