ipsservices/ipssosplugin/inc/ipsplgcommon.h
changeset 0 8466d47a6819
child 24 d189ee25cf9d
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:  contains common variables and default values
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef IPSPLGCOMMON_H_
       
    20 #define IPSPLGCOMMON_H_
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "ipsplgsosbaseplugin.hrh"
       
    25 
       
    26 _LIT( KIpsPlgInbox, "Inbox");
       
    27 const TUid KIpsPlgImap4PluginUid = { IPSSOSIMAP4PLUGIN_IMPLEMENTATION_UID };
       
    28 const TUid KIpsPlgPop3PluginUid = { IPSSOSPOP3PLUGIN_IMPLEMENTATION_UID };
       
    29 
       
    30 const TUint KIpsPlgImap4PluginUidValue = IPSSOSIMAP4PLUGIN_IMPLEMENTATION_UID;
       
    31 const TUint KIpsPlgPop3PluginUidValue = IPSSOSPOP3PLUGIN_IMPLEMENTATION_UID;
       
    32 
       
    33 const TUid KCRUidExtendedSettingsUid   = { IPS_EXTENDED_SETTINGS_UID };
       
    34 
       
    35 const TUid KIpsPlgPropertyCatUid  = { IPS_PROPERTY_CAT_UID };
       
    36 
       
    37 const TInt KIpsPlgMaxPhoneIdLength  = 50;
       
    38 
       
    39 const TInt KContinueInterval = 3000000; // 3 sec
       
    40 
       
    41 static _LIT_SECURITY_POLICY_PASS( KAllowAllPolicy );
       
    42 static _LIT_SECURITY_POLICY_C1( KAllowWriteDeviceDataPolicy, ECapabilityWriteDeviceData );
       
    43 
       
    44 /**
       
    45  * class TIpsMailboxState
       
    46  */
       
    47 class TIpsMailboxState
       
    48     {
       
    49 public:
       
    50     TIpsMailboxState( TInt aMailbox, TInt aState ) :
       
    51         iMailbox(aMailbox), iState(aState) { }
       
    52     TIpsMailboxState( ) : iMailbox(0), iState( KErrNotFound ) { }
       
    53     
       
    54     TInt iMailbox;
       
    55     TInt   iState;
       
    56     };
       
    57 
       
    58 /**
       
    59 * TIpsPlgPropertyEvent
       
    60 *
       
    61 */
       
    62 class TIpsPlgPropertyEvent
       
    63     {
       
    64 public:
       
    65     inline TIpsPlgPropertyEvent( 
       
    66             TInt aEvent, TInt aMailbox, TInt aPluginId, TInt aError ) : 
       
    67         iEvent(aEvent), iMailbox(aMailbox),
       
    68         iPluginId(aPluginId) ,iError(aError) { }
       
    69     
       
    70     inline TIpsPlgPropertyEvent( ) : 
       
    71         iEvent(0), iMailbox(0), iPluginId(KErrNotFound), iError(0) { }
       
    72     
       
    73     TInt iEvent;
       
    74     TInt iMailbox;
       
    75     TInt iPluginId;
       
    76     TInt iError;
       
    77     };
       
    78 
       
    79 #endif /*IPSPLGCOMMON_H_*/