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

« back to all changes in this revision

Viewing changes to akonadi/kmime/messagestatus.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-14 14:37:07 UTC
  • mto: This revision was merged to the branch mainline in revision 112.
  • Revision ID: package-import@ubuntu.com-20111214143707-m0qplh3hsd957ukv
Tags: upstream-4.7.90
Import upstream version 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*  -*- mode: C++ -*-
2
2
    This file is part of Akonadi.
3
3
    Copyright (c) 2005 Andreas Gungl <a.gungl@gmx.de>
4
 
    Copyright (c) 2010 KDAB
 
4
    Copyright (c) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5
5
    Copyright (c) 2010 Leo Franchi <lfranchi@kde.org>
6
6
 
7
7
    This library is free software; you can redistribute it and/or
249
249
        @param hasAttachment Set (true) or unset (false) this status flag.
250
250
    */
251
251
    void setHasAttachment( bool hasAttachment = true );
252
 
    
 
252
 
253
253
    /** Set the status for an invitation.
254
254
        @param hasInvitation Set (true) or unset (false) this status flag.
255
255
    */
271
271
    void setHasError( bool value = true );
272
272
 
273
273
    /* ----- state representation  --------------------------------------- */
274
 
    
 
274
 
275
275
    /** Get the status as a whole e.g. for storage in an index.
276
276
     D on't manipulte the *index via this value, this bypasses
277
277
     all integrity checks in the setter methods.
278
278
     @return The status encoded in bits.
279
279
     */
280
280
    qint32 toQInt32() const;
281
 
    
 
281
 
282
282
    /** Set the status as a whole e.g. for reading from an index.
283
283
        Don't manipulte the index via this value, this bypasses
284
284
        all integrity checks in the setter methods.
285
285
        @param status The status encoded in bits to be set in this instance.
286
286
    */
287
287
    void fromQInt32( qint32 status );
288
 
    
 
288
 
289
289
    /** Convert the status to a string representation.
290
290
        @return A string containing coded uppercase letters
291
291
                which describe the status.