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

« back to all changes in this revision

Viewing changes to messagelist/core/model.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:
44
44
namespace Core
45
45
{
46
46
 
47
 
typedef unsigned long int MessageItemSetReference;
 
47
typedef long int MessageItemSetReference;
48
48
 
49
49
class ViewItemJob;
50
50
class Filter;
67
67
 * The keypoint in this class is that it has to be non-blocking in manipulating the tree:
68
68
 * fill, cleanup and update operations are performed in timed chunks. Perfect non-blocking
69
69
 * behaviour is not possible since there are some small operations that basically can't be
70
 
 * splitted in chunks. However, these exceptions apply to a minority of tasks and
71
 
 * in the average case the user will not notice.
 
70
 * split in chunks. However, these exceptions apply to a minority of tasks and in the
 
71
 * average case the user will not notice.
72
72
 *
73
73
 * The data for building the tree is obtained from a subclass of StorageModel. The
74
74
 * StorageModel must offer a consistent rappresentation of a "flat" folder containing
133
133
  void activateMessageAfterLoading( unsigned long uniqueIdOfMessage, int row );
134
134
 
135
135
  /**
136
 
   * This function attempts to apply the specified pre-selection mode in any model state.
137
 
   * This isn't always possible so you should specify the pre-selection mode in setStorageModel()
138
 
   * if possible. However, this function is useful to implement coherent behaviour when navigating
139
 
   * multiple views with the keyboard.
140
 
   *
141
 
   * If the model is still loading then the pre-selection is scheduled to be applied
142
 
   * at the end of the job. PreSelectNone is equivalent to calling abortMessagePreSelection().
143
 
   * If the model is no longer loading then the pre-selection is applied immediately with
144
 
   * the following restrictions:
145
 
   *
146
 
   * - PreSelectNone is explicitly ignored (does NOT unselect the current item)
147
 
   * - PreSelectLastSelected has no effect (since it would simply re-select the currently selected message)
148
 
   */
149
 
  void applyMessagePreSelection( PreSelectionMode preSelectionMode );
150
 
 
151
 
  /**
152
136
   * Returns the hidden root item that all the messages are (or will be) attached to.
153
137
   * The returned value is never 0.
154
138
   */
238
222
  virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const;
239
223
  virtual Qt::ItemFlags flags( const QModelIndex &index ) const;
240
224
 
 
225
  /// Called when user initiates a drag from the messagelist
 
226
  virtual QMimeData* mimeData( const QModelIndexList& indexes ) const;
 
227
 
241
228
Q_SIGNALS:
242
229
  /**
243
230
   * Notify the outside when updating the status bar with a message