~ubuntu-branches/ubuntu/quantal/kdepimlibs/quantal-proposed

« back to all changes in this revision

Viewing changes to akonadi/entitytreemodel.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-07-08 00:32:40 UTC
  • mfrom: (1.1.63 upstream)
  • Revision ID: package-import@ubuntu.com-20110708003240-0gzufcu25rui82r1
Tags: 4:4.6.90-0ubuntu1
* New upstream release candidate
  - Bump build-dep on libakonadi-dev
  - update install files with new library versions
  - update libkcal4.install
  - refresh libakonadi-kde4.symbols, libkcalcore4.symbols,
    libkholidays4.symbols and libkimap4.symbols
  - exclude kde-runtime not kdebase-runtime in rules.
  - Update Vcs links for new location

Show diffs side-by-side

added added

removed removed

Lines of Context:
355
355
    };
356
356
 
357
357
    /**
358
 
     * Describes the state of fetch jobs related to particular entities.
 
358
     * Describes the state of fetch jobs related to particular collections.
 
359
     *
 
360
     * @code
 
361
     *   QModelIndex collectionIndex = getIndex();
 
362
     *   if (collectionIndex.data(EntityTreeModel::FetchStateRole).toLongLong() == FetchingState) {
 
363
     *     // There is a fetch underway
 
364
     *   } else {
 
365
     *     // There is no fetch underway.
 
366
     *   }
 
367
     * @endcode
 
368
     *
359
369
     * @since 4.5
360
370
     */
361
371
    enum FetchState {
362
 
      IdleState,                              ///< There is no fetch in progress.
363
 
      FetchingState                           ///< There is a fetch in progress.
 
372
      IdleState,                              ///< There is no fetch of items in this collection in progress.
 
373
      FetchingState                           ///< There is a fetch of items in this collection in progress.
364
374
      // TODO: Change states for reporting of fetching payload parts of items.
365
375
    };
366
376
 
612
622
    Q_PRIVATE_SLOT( d_func(), void monitoredCollectionStatisticsChanged( Akonadi::Collection::Id,
613
623
                                                                         const Akonadi::CollectionStatistics& ) )
614
624
 
615
 
    Q_PRIVATE_SLOT( d_func(), void rootCollectionFetched(Akonadi::Collection::List) )
616
625
    Q_PRIVATE_SLOT( d_func(), void startFirstListJob() )
617
626
    Q_PRIVATE_SLOT( d_func(), void serverStarted() )
618
627
 
619
 
    // TODO: Can I merge these into one jobResult slot?
620
628
    Q_PRIVATE_SLOT( d_func(), void fetchJobDone( KJob *job ) )
 
629
    Q_PRIVATE_SLOT( d_func(), void rootFetchJobDone( KJob *job ) )
621
630
    Q_PRIVATE_SLOT( d_func(), void pasteJobDone( KJob *job ) )
622
631
    Q_PRIVATE_SLOT( d_func(), void updateJobDone( KJob *job ) )
623
632
    Q_PRIVATE_SLOT( d_func(), void firstFetchJobDone( KJob *job ) )
624
633
 
625
634
    Q_PRIVATE_SLOT( d_func(), void itemsFetched( Akonadi::Item::List ) )
 
635
    Q_PRIVATE_SLOT( d_func(), void itemsFetched( KJob* ) )
626
636
    Q_PRIVATE_SLOT( d_func(), void collectionsFetched( Akonadi::Collection::List ) )
627
637
    Q_PRIVATE_SLOT( d_func(), void firstCollectionsFetched( Akonadi::Collection::List ) )
628
638
    Q_PRIVATE_SLOT( d_func(), void collectionListFetched( Akonadi::Collection::List ) )
631
641
 
632
642
    Q_PRIVATE_SLOT( d_func(), void monitoredMimeTypeChanged( const QString&, bool ) )
633
643
    Q_PRIVATE_SLOT( d_func(), void monitoredCollectionsChanged( const Akonadi::Collection&, bool ) )
 
644
    Q_PRIVATE_SLOT( d_func(), void monitoredItemsChanged( const Akonadi::Item&, bool ) )
634
645
    Q_PRIVATE_SLOT( d_func(), void monitoredResourcesChanged( const QByteArray&, bool ) )
635
646
 
636
647
    Q_PRIVATE_SLOT( d_func(), void monitoredCollectionAdded( const Akonadi::Collection&, const Akonadi::Collection& ) )
652
663
    Q_PRIVATE_SLOT( d_func(), void changeFetchState( const Akonadi::Collection & ) )
653
664
 
654
665
    Q_PRIVATE_SLOT( d_func(), void agentInstanceAdvancedStatusChanged( const QString&, const QVariantMap& ) )
 
666
    Q_PRIVATE_SLOT( d_func(), void agentInstanceRemoved( Akonadi::AgentInstance ) )
 
667
    Q_PRIVATE_SLOT( d_func(), void monitoredItemsRetrieved(KJob* job) )
655
668
    //@endcond
656
669
};
657
670