~ubuntu-branches/ubuntu/quantal/akonadi/quantal

« back to all changes in this revision

Viewing changes to server/src/handlerhelper.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-01-24 23:43:13 UTC
  • mto: (3.1.12 sid)
  • mto: This revision was merged to the branch mainline in revision 69.
  • Revision ID: package-import@ubuntu.com-20120124234313-ooald4uh9w8jilyw
Tags: upstream-1.7.0
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
{
39
39
  public:
40
40
    /**
41
 
      Removes leading and trailing delimiters.
42
 
    */
43
 
    static QByteArray normalizeCollectionName( const QByteArray &name );
44
 
 
45
 
    /**
46
41
      Returns the collection identified by the given id or path.
47
42
    */
48
43
    static Collection collectionFromIdOrName( const QByteArray &id );
72
67
      which have a given flag set.
73
68
      @return -1 on error.
74
69
    */
75
 
    static int itemWithFlagCount( const Collection &col, const QString &flag );
76
70
    static int itemWithFlagsCount( const Collection &col, const QStringList &flags );
77
71
 
78
72
    /**
79
 
      Returns the amount of existing items in the given collection
80
 
      which have a given flag not set.
81
 
      @return -1 on error
82
 
    */
83
 
    static int itemWithoutFlagCount( const Collection &col, const QString &flag );
84
 
 
85
 
    /**
86
73
      Parse cache policy and update the given Collection object accoordingly.
87
74
      @param changed Indicates whether or not the cache policy already available in @p col
88
75
      has actually changed