qtmobility/src/messaging/qmessagecontentcontainerid.cpp
changeset 1 2b40d63a9c3d
child 8 71781823f776
equal deleted inserted replaced
0:cfcbf08528c4 1:2b40d63a9c3d
       
     1 /****************************************************************************
       
     2 **
       
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     4 ** All rights reserved.
       
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
       
     6 **
       
     7 ** This file is part of the Qt Mobility Components.
       
     8 **
       
     9 ** $QT_BEGIN_LICENSE:LGPL$
       
    10 ** No Commercial Usage
       
    11 ** This file contains pre-release code and may not be distributed.
       
    12 ** You may use this file in accordance with the terms and conditions
       
    13 ** contained in the Technology Preview License Agreement accompanying
       
    14 ** this package.
       
    15 **
       
    16 ** GNU Lesser General Public License Usage
       
    17 ** Alternatively, this file may be used under the terms of the GNU Lesser
       
    18 ** General Public License version 2.1 as published by the Free Software
       
    19 ** Foundation and appearing in the file LICENSE.LGPL included in the
       
    20 ** packaging of this file.  Please review the following information to
       
    21 ** ensure the GNU Lesser General Public License version 2.1 requirements
       
    22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
       
    23 **
       
    24 ** In addition, as a special exception, Nokia gives you certain additional
       
    25 ** rights.  These rights are described in the Nokia Qt LGPL Exception
       
    26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
       
    27 **
       
    28 ** If you have questions regarding the use of this file, please contact
       
    29 ** Nokia at qt-info@nokia.com.
       
    30 **
       
    31 **
       
    32 **
       
    33 **
       
    34 **
       
    35 **
       
    36 **
       
    37 **
       
    38 ** $QT_END_LICENSE$
       
    39 **
       
    40 ****************************************************************************/
       
    41 #include "qmessagecontentcontainerid.h"
       
    42 
       
    43 QTM_BEGIN_NAMESPACE
       
    44 
       
    45 /*!
       
    46     \class QMessageContentContainerId
       
    47     \ingroup messaging
       
    48 
       
    49     \preliminary
       
    50     \brief The QMessageContentContainerId class provides a unique identifier for 
       
    51     QMessageContentContainer internet media (MIME) type entities, within the scope of the
       
    52     containing message.
       
    53 
       
    54     A QMessageContentContainerId can be constructed from a string, or converted to a string 
       
    55     with toString().
       
    56 
       
    57     The identifier of the containing (parent) message is return by messageId()
       
    58 
       
    59     A QMessageContentContainerId instance can be tested for validity with isValid(), and compared 
       
    60     to other instances for equality.
       
    61     
       
    62     If the object a QMessageContentContainerId identifies is removed then the identifier may 
       
    63     be reused.
       
    64     
       
    65     If the QMessageContentContainerId refers to an object that has a parent container, and the 
       
    66     contents of that parent container are modified by removing or prepending contents (i.e. 
       
    67     message attachments are removed or a message body is created) or the parent container 
       
    68     itself is removed then the identifier may become invalid, or be reused to reference a 
       
    69     different object entirely.
       
    70     
       
    71     \sa QMessageContentContainer
       
    72 */
       
    73 
       
    74 /*!
       
    75     \fn QMessageContentContainerId::QMessageContentContainerId()
       
    76 
       
    77     Creates an invalid identifier, toString() will return a null string;
       
    78 */
       
    79 
       
    80 /*!
       
    81     \fn QMessageContentContainerId::QMessageContentContainerId(const QMessageContentContainerId& other)
       
    82 
       
    83     Constructs a copy of \a other.
       
    84 */
       
    85 
       
    86 /*!
       
    87     \fn QMessageContentContainerId::QMessageContentContainerId(const QString& id)
       
    88 
       
    89     Constructs an identifier from \a id.
       
    90     
       
    91     \sa toString()
       
    92 */
       
    93 
       
    94 /*!
       
    95     \fn QMessageContentContainerId::~QMessageContentContainerId()
       
    96     
       
    97     Destroys the identifier.
       
    98 */
       
    99 
       
   100 /*!
       
   101     \internal
       
   102     \fn QMessageContentContainerId& QMessageContentContainerId::operator=(const QMessageContentContainerId &other)
       
   103 */
       
   104 
       
   105 /*!
       
   106     \internal
       
   107     \fn bool QMessageContentContainerId::operator==(const QMessageContentContainerId &other) const
       
   108 */
       
   109 
       
   110 /*!
       
   111     \internal
       
   112 */
       
   113 bool QMessageContentContainerId::operator!=(const QMessageContentContainerId &other) const
       
   114 {
       
   115     return !operator==(other);
       
   116 }
       
   117 
       
   118 /*!
       
   119     \fn bool QMessageContentContainerId::toString() const
       
   120 
       
   121     Returns the string representation of this identifier.
       
   122     
       
   123     A null string should be returned if and only if the identifier is invalid.
       
   124 
       
   125     String representations of identifiers should not be used to test for equality, instead 
       
   126     the equality operator should be used.
       
   127 */
       
   128 
       
   129 /*!
       
   130     \fn bool QMessageContentContainerId::isValid() const
       
   131 
       
   132     Returns true if this identifier is valid; otherwise returns false.
       
   133 */
       
   134 
       
   135 /*! \typedef QMessageContentContainerIdList
       
   136 
       
   137     Qt-style synonym for QList<QMessageContentContainerId>
       
   138 */
       
   139 
       
   140 QTM_END_NAMESPACE