~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to kmail/kmmainwidget.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:51 UTC
  • mto: This revision was merged to the branch mainline in revision 193.
  • Revision ID: package-import@ubuntu.com-20111215141751-bmhdpiwl23wd9w26
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include "messageactions.h"
33
33
#include <kaction.h>
34
34
#include <kactioncollection.h>
35
 
#include <kvbox.h>
36
35
#include <foldercollection.h>
37
36
 
38
37
#include <QList>
39
 
#include <QVBoxLayout>
40
 
#include <QMenu>
41
38
#include <QLabel>
42
 
#include <QHash>
43
39
#include <QPointer>
 
40
#include <QTimer>
44
41
#include <akonadi/kmime/standardmailactionmanager.h>
45
42
#include <messagelist/core/view.h>
 
43
#include <Solid/Networking>
46
44
 
47
45
namespace Akonadi {
48
46
  class EntityListView;
55
53
class QVBoxLayout;
56
54
class QSplitter;
57
55
 
 
56
class QMenu;
58
57
class KActionMenu;
59
58
class KToggleAction;
60
59
class KMMetaFilterActionCommand;
61
60
class KMSystemTray;
62
 
class CustomTemplatesMenu;
63
61
class CollectionPane;
 
62
class KMCommand;
 
63
class KMMoveCommand;
64
64
 
65
65
template <typename T, typename S> class QMap;
66
66
 
159
159
 
160
160
    void toggleSystemTray();
161
161
 
162
 
    void updateListFilterAction();
163
 
 
164
162
    /**
165
163
      Returns a list of all KMMainWidgets. Warning, the list itself can be 0.
166
164
      @return the list of all main widgets, or 0 if it is not yet initialized
264
262
    /** Adds if not existing/removes if existing the tag identified by @p aLabel
265
263
        in all selected messages */
266
264
    void slotUpdateMessageTagList( const QString &aLabel );
 
265
    void slotSelectMoreMessageTagList();
267
266
 
268
267
    /**
269
268
     * Convenience function to get the action collection in a list.
277
276
 
278
277
    KAction *akonadiStandardAction( Akonadi::StandardActionManager::Type type );
279
278
    KAction *akonadiStandardAction( Akonadi::StandardMailActionManager::Type type );
 
279
    Akonadi::StandardMailActionManager *standardMailActionManager() const { return mAkonadiStandardActionManager; }
 
280
 
280
281
    void refreshMessageListSelection();
281
282
 
282
283
    void slotStartCheckMail();
334
335
    void slotDelayedRemoveFolder( KJob* );
335
336
    void slotEmptyFolder();
336
337
    void slotAddFavoriteFolder();
337
 
    void slotShowSelectedForderInPane();
 
338
    void slotShowSelectedFolderInPane();
338
339
    void slotOverrideHtml();
339
340
    void slotOverrideHtmlLoadExt();
340
341
    void slotMessageQueuedOrDrafted();
354
355
    void slotStartCertManager();
355
356
    void slotStartWatchGnuPG();
356
357
    void slotApplyFilters();
357
 
    int slotFilterMsg( const Akonadi::Item &msg );
358
358
    void slotExpandThread();
359
359
    void slotExpandAllThreads();
360
360
    void slotCollapseThread();
370
370
    void slotSendQueuedVia( QAction* item );
371
371
    void slotOnlineStatus();
372
372
    void slotUpdateOnlineStatus( GlobalSettings::EnumNetworkState::type );
 
373
    void slotNetworkStatusChanged ( Solid::Networking::Status );
373
374
    void slotMessagePopup(const Akonadi::Item& ,const KUrl&,const QPoint& );
374
375
    void slotDelayedMessagePopup( KJob *job );
375
376
    void slotMarkAll();
376
377
    void slotFocusQuickSearch();
377
 
    void slotSearch();
378
 
    void slotSearchClosed();
 
378
    bool slotSearch();
379
379
    void slotFind();
380
380
    void slotIntro();
381
381
    void slotShowStartupFolder();
426
426
    void slotCustomForwardMsg( const QString &tmpl );
427
427
    void slotNoQuoteReplyToMsg();
428
428
    void slotSubjectFilter();
429
 
    void slotMailingListFilter();
430
429
    void slotFromFilter();
431
430
    void slotToFilter();
432
431
    void slotCreateTodo();
435
434
 
436
435
    /** Show a splash screen for the longer-lasting operation */
437
436
    void slotShowBusySplash();
438
 
 
 
437
  
439
438
    /**
440
439
      Show a message screen explaining that we are currently offline, when
441
440
      an online folder is selected.
454
453
    void slotAkonadiStandardActionUpdated();
455
454
    void slotCollectionChanged( const Akonadi::Collection&, const QSet<QByteArray>& );
456
455
    void slotCreateNewTab( bool );
 
456
    void slotShowNotification();
457
457
 
458
458
  private:
 
459
    void showNotifications();
459
460
 
460
461
    /** Get override character encoding. */
461
462
    QString overrideEncoding() const;
462
463
 
463
 
    /** Update the custom template menus. */
464
 
    void updateCustomTemplateMenus();
465
 
 
466
 
 
467
464
    void moveMessageSelected( MessageList::Core::MessageItemSetReference ref, const Akonadi::Collection &dest, bool confirmOnDeletion = true );
468
465
 
469
466
    void copyMessageSelected( const QList<Akonadi::Item> &selectMsg, const Akonadi::Collection &dest );
510
507
 
511
508
 
512
509
    void addInfoInNotification( const Akonadi::Collection&col );
 
510
    void updateInfoInNotification( const Akonadi::Collection& from, const Akonadi::Collection& to );
 
511
 
 
512
    /**
 
513
     * Internal helper that applies the current settings so the
 
514
     * favorite folder view.
 
515
     */
 
516
    void refreshFavoriteFoldersViewProperties();
 
517
    bool excludeSpecialFolder( const Akonadi::Collection &collection );
513
518
 
514
519
  private slots:
515
520
    /**
534
539
    void itemsFetchDone( KJob *job );
535
540
 
536
541
    void slotCollectionPropertiesContinued( KJob* job );
 
542
    void slotDeletionCollectionResult(KJob* job);
 
543
  
537
544
private:
538
545
    // Message actions
539
546
    KAction *mDeleteAction, *mTrashThreadAction,
545
552
    KActionMenu *mFilterMenu;
546
553
    KAction *mSubjectFilterAction, *mFromFilterAction, *mToFilterAction,
547
554
        *mListFilterAction;
548
 
 
549
555
    KAction *mNextMessageAction, *mPreviousMessageAction;
550
556
    KAction *mExpireConfigAction;
551
557
    KAction *mAddFavoriteFolder;
552
558
    // Custom template actions menu
553
559
    KActionMenu *mTemplateMenu;
554
 
    CustomTemplatesMenu *mCustomTemplateMenus;
555
560
 
556
561
    KActionMenu *mThreadStatusMenu, *mApplyFilterActionsMenu;
557
562
    KAction *mCopyActionMenu;
581
586
    bool mEnableFavoriteFolderView;
582
587
    bool mEnableFolderQuickSearch;
583
588
 
584
 
    //  QPopupMenu *mMessageMenu;
585
 
    KMail::SearchWindow *mSearchWin;
 
589
    QPointer<KMail::SearchWindow> mSearchWin;
586
590
 
587
591
    KAction *mExpireFolderAction,
588
592
      *mFolderMailingListPropertiesAction,
629
633
    QMap<Akonadi::Collection::Id, int> mCheckMail;
630
634
 
631
635
    bool mCheckMailInProgress;
 
636
    QTimer m_notificationTimer;
 
637
 
632
638
    MailCommon::FolderSelectionDialog* mMoveOrCopyToDialog;
633
639
    MailCommon::FolderSelectionDialog* mSelectFromAllFoldersDialog;
634
640
};