File indexing completed on 2024-11-17 04:40:41
0001 /* 0002 This file is part of Akonadi Contact. 0003 0004 SPDX-FileCopyrightText: 2009 Tobias Koenig <tokoe@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #pragma once 0010 0011 #include "contactmetadatabase_p.h" 0012 namespace Akonadi 0013 { 0014 class Item; 0015 } 0016 namespace Akonadi 0017 { 0018 /** 0019 * @short A helper class for storing contact specific settings. 0020 */ 0021 class ContactMetaDataAkonadi : public Akonadi::ContactMetaDataBase 0022 { 0023 public: 0024 /** 0025 * Creates a contact meta data object. 0026 */ 0027 ContactMetaDataAkonadi(); 0028 0029 /** 0030 * Destroys the contact meta data object. 0031 */ 0032 ~ContactMetaDataAkonadi(); 0033 0034 /** 0035 * Loads the meta data for the given @p contact. 0036 */ 0037 void load(const Akonadi::Item &contact); 0038 0039 /** 0040 * Stores the meta data to the given @p contact. 0041 */ 0042 void store(Akonadi::Item &contact); 0043 }; 0044 }