diff --git a/akonadi/entityhiddenattribute.cpp b/akonadi/entityhiddenattribute.cpp index ea7da259d..6b7868235 100644 --- a/akonadi/entityhiddenattribute.cpp +++ b/akonadi/entityhiddenattribute.cpp @@ -1,61 +1,55 @@ /****************************************************************************** - * - * File : entityhiddenattribute.cpp - * Creation date : Sat 1 Aug 2009 02:07:50 * * Copyright (c) 2009 Szymon Stefanek * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Library General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public * License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to the * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA, 02110-1301, USA. * *****************************************************************************/ #include "entityhiddenattribute.h" #include -namespace Akonadi -{ +using namespace Akonadi; EntityHiddenAttribute::EntityHiddenAttribute() + : d( 0 ) { } EntityHiddenAttribute::~EntityHiddenAttribute() { } QByteArray Akonadi::EntityHiddenAttribute::type() const { return "HIDDEN"; } EntityHiddenAttribute * EntityHiddenAttribute::clone() const { return new EntityHiddenAttribute(); } QByteArray EntityHiddenAttribute::serialized() const { return QByteArray(); } void EntityHiddenAttribute::deserialize( const QByteArray &data ) { Q_ASSERT( data.isEmpty() ); } - -} // namespace Akonadi - diff --git a/akonadi/entityhiddenattribute.h b/akonadi/entityhiddenattribute.h index eb941c8ed..96bcf7e8f 100644 --- a/akonadi/entityhiddenattribute.h +++ b/akonadi/entityhiddenattribute.h @@ -1,85 +1,83 @@ /****************************************************************************** - * - * File : entityhiddenattribute.h - * Creation date : Sat 1 Aug 2009 02:07:50 * * Copyright (c) 2009 Szymon Stefanek * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Library General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public * License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to the * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA, 02110-1301, USA. * *****************************************************************************/ -#ifndef _ENTITYHIDDENATTRIBUTE_H_ -#define _ENTITYHIDDENATTRIBUTE_H_ +#ifndef AKONADI_ENTITYHIDDENATTRIBUTE_H +#define AKONADI_ENTITYHIDDENATTRIBUTE_H #include - namespace Akonadi { /** - * @short Attribute signaling that an entity should be hidden in the UI + * @short Attribute signalling that an entity should be hidden in the UI * - * This class rappresents the attribute of all hidden items. The hidden + * This class represents the attribute of all hidden items. The hidden * items shouldn't be displayed in UI applications (unless in some kind * of "debug" mode). * * @seealso Attribute * * @author Szymon Stefanek * @since 4.4 */ class AKONADI_EXPORT EntityHiddenAttribute : public Attribute { public: - /** * Creates a new entity hidden attribute. */ EntityHiddenAttribute(); /** * Destroys the entity hidden attribute. */ ~EntityHiddenAttribute(); - public: - /** * Reimplemented from Attribute */ QByteArray type() const; /** * Reimplemented from Attribute */ - EntityHiddenAttribute * clone() const; + EntityHiddenAttribute* clone() const; /** * Reimplemented from Attribute */ QByteArray serialized() const; /** * Reimplemented from Attribute */ void deserialize( const QByteArray &data ); -}; // EntityHiddenAttribute + private: + //@cond PRIVATE + class Private; + Private* const d; + //@endcond +}; -} // namespace Akonadi +} -#endif //!_ENTITYHIDDENATTRIBUTE_H_ +#endif