~ubuntu-branches/ubuntu/oneiric/kdepim/oneiric-updates

« back to all changes in this revision

Viewing changes to kmail/antispamwizard.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-06-28 19:33:24 UTC
  • mfrom: (0.2.13) (0.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20110628193324-8yvjs8sdv9rdoo6c
Tags: 4:4.7.0-0ubuntu1
* New upstream release
  - update install files
  - add missing kdepim-doc package to control file
  - Fix Vcs lines
  - kontact breaks/replaces korganizer << 4:4.6.80
  - tighten the dependency of kdepim-dev on libkdepim4 to fix lintian error

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#include <KSharedConfig>
34
34
 
35
35
#include <QCheckBox>
36
 
#include <QLayout>
37
 
#include <QPixmap>
38
36
#include <QList>
39
37
#include <QListWidget>
40
38
#include <QBoxLayout>
41
 
 
42
 
class KMFolder;
 
39
#include <akonadi/collection.h>
43
40
class QLabel;
44
41
 
45
 
namespace KMail {
46
 
 
47
 
  class FolderSelectionTreeWidget;
48
 
  class MainFolderView;
 
42
namespace MailCommon {
 
43
  class FolderTreeWidget;
49
44
  class FolderRequester;
 
45
}
 
46
 
 
47
  namespace KMail {
50
48
 
51
49
  class ASWizInfoPage;
52
50
  class ASWizSpamRulesPage;
121
119
          within one of the wizard pages.
122
120
      */
123
121
      AntiSpamWizard( WizardMode mode,
124
 
                      QWidget * parent, MainFolderView * mainFolderTree );
 
122
                      QWidget * parent);
125
123
 
126
124
    protected:
127
125
      /**
255
253
      /** Create the summary text based on the current settings */
256
254
      void slotBuildSummary();
257
255
 
258
 
      void allowToSelectFolder( bool );
259
 
 
260
256
    private:
261
257
      /* Check for the availability of an executible along the PATH */
262
258
      int checkForProgram( const QString &executable );
275
271
      ASWizVirusRulesPage * mVirusRulesPage;
276
272
      ASWizSummaryPage * mSummaryPage;
277
273
 
 
274
      KPageWidgetItem * mInfoPageItem;
 
275
      KPageWidgetItem * mSpamRulesPageItem;
 
276
      KPageWidgetItem * mVirusRulesPageItem;
 
277
      KPageWidgetItem * mSummaryPageItem;
 
278
 
278
279
      /* The configured tools and it's settings to be used in the wizard. */
279
280
      QList<SpamToolConfig> mToolList;
280
281
 
334
335
    Q_OBJECT
335
336
 
336
337
    public:
337
 
      ASWizSpamRulesPage( QWidget * parent, const char * name, MainFolderView * mainFolderTree );
 
338
      ASWizSpamRulesPage( QWidget * parent, const char * name);
338
339
 
339
340
      bool markAsReadSelected() const;
340
341
      bool moveSpamSelected() const;
341
342
      bool moveUnsureSelected() const;
342
343
 
343
 
      QString selectedSpamFolderName() const;
344
 
      QString selectedUnsureFolderName() const;
 
344
      QString selectedUnsureCollectionName() const;
 
345
      QString selectedUnsureCollectionId() const;
345
346
 
346
347
      void allowUnsureFolderSelection( bool enabled );
 
348
      void allowMoveSpam( bool enabled );
 
349
 
 
350
      QString selectedSpamCollectionId() const;
 
351
      QString selectedSpamCollectionName() const;
 
352
 
 
353
    protected:
 
354
      Akonadi::Collection selectedSpamCollection() const;
 
355
      Akonadi::Collection selectedUnsureCollection() const;
347
356
 
348
357
    private slots:
349
358
      void processSelectionChange();
350
 
      void processSelectionChange( KMFolder* );
 
359
    void processSelectionChange( const Akonadi::Collection & );
351
360
 
352
361
    signals:
353
362
      void selectionChanged();
356
365
      QCheckBox * mMarkRules;
357
366
      QCheckBox * mMoveSpamRules;
358
367
      QCheckBox * mMoveUnsureRules;
359
 
      FolderRequester *mFolderReqForSpamFolder;
360
 
      FolderRequester *mFolderReqForUnsureFolder;
 
368
      MailCommon::FolderRequester *mFolderReqForSpamFolder;
 
369
      MailCommon::FolderRequester *mFolderReqForUnsureFolder;
361
370
  };
362
371
 
363
372
  //-------------------------------------------------------------------------
366
375
    Q_OBJECT
367
376
 
368
377
    public:
369
 
      ASWizVirusRulesPage( QWidget * parent, const char * name, MainFolderView * mainFolderTree );
 
378
      ASWizVirusRulesPage( QWidget * parent, const char * name );
370
379
 
371
380
      bool pipeRulesSelected() const;
372
381
      bool moveRulesSelected() const;
376
385
 
377
386
    private slots:
378
387
      void processSelectionChange();
379
 
      void verifyAllowToSelectFolder( bool allowOk, bool /*allowCreate*/ );
380
388
    signals:
381
389
      void selectionChanged();
382
 
      void allowToSelectFolder( bool );
383
390
 
384
391
    private:
385
392
      QCheckBox * mPipeRules;
386
393
      QCheckBox * mMoveRules;
387
 
      FolderSelectionTreeWidget *mFolderTree;
 
394
      MailCommon::FolderTreeWidget *mFolderTree;
388
395
      QCheckBox * mMarkRules;
389
396
  };
390
397