calendarui/customisation/inc/calenpluginsettingitem.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Provides interface for plugins to store its setting items
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CALENPLUGINSETTINGITEM_H
       
    19 #define CALENPLUGINSETTINGITEM_H
       
    20 #include <e32std.h>
       
    21 /**
       
    22 * TClass to definea plugin setting with necessary information
       
    23 * Plugins shall use this class to communicate its settings with 
       
    24 * calendar application
       
    25 */
       
    26 class TPluginSettingItem
       
    27 {
       
    28 	// Member functions
       
    29 public:
       
    30 	TPluginSettingItem(TUid aPluginUid, HBufC* aSettingName, HBufC* aSettingValue);
       
    31 	TUid GetPluginId();
       
    32 	HBufC* GetPluginSettingName();
       
    33 	HBufC* GetPluginSettingValue();
       
    34 	
       
    35 	// Data Members
       
    36 public:
       
    37 	TUid 	iPluginUid;	// plugin Uid
       
    38 	HBufC*  iSettingName; // Setting Name
       
    39 	HBufC*  iSettingValue; // Setting Value
       
    40 };
       
    41 
       
    42 // Constructor of the class TPluginSettingItem
       
    43 inline TPluginSettingItem::TPluginSettingItem(TUid aPluginUid, 
       
    44 					  HBufC* aSettingName, 
       
    45 					  HBufC* aSettingValue)
       
    46 	{
       
    47 	iPluginUid = aPluginUid;
       
    48 	iSettingName = aSettingName;
       
    49 	iSettingValue = aSettingValue;	
       
    50 	}
       
    51 
       
    52 // Returns the plugin Uid	
       
    53 inline TUid TPluginSettingItem::GetPluginId()
       
    54 	{
       
    55 	return iPluginUid;
       
    56 	}
       
    57 
       
    58 // Returns the Setting Name
       
    59 inline HBufC* TPluginSettingItem::GetPluginSettingName()
       
    60 	{
       
    61 	return iSettingName;
       
    62 	}
       
    63 
       
    64 // Returns the setting value
       
    65 inline HBufC* TPluginSettingItem::GetPluginSettingValue()
       
    66 	{
       
    67 	return iSettingValue;
       
    68 	}
       
    69 	
       
    70 #endif // CALENPLUGINSETTINGITEM_H