ipsservices/ipssosaoplugin/src/IpsSosAOSettingsHandler.cpp
changeset 20 ecc8def7944a
child 23 2dc6caa42ec3
equal deleted inserted replaced
18:578830873419 20:ecc8def7944a
       
     1 /*
       
     2 * Copyright (c) 2010 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: 
       
    15 *     
       
    16 *
       
    17 */
       
    18 #include "IpsSosAOSettingsHandler.h"
       
    19 #include <SendUiConsts.h>
       
    20 
       
    21 
       
    22 // ----------------------------------------------------------------------------
       
    23 // ----------------------------------------------------------------------------
       
    24 CIpsSosAOSettingsHandler* CIpsSosAOSettingsHandler::NewL( TUid aProtocol )
       
    25     {
       
    26     CIpsSosAOSettingsHandler* self = new(ELeave)CIpsSosAOSettingsHandler();
       
    27     CleanupStack::PushL(self);
       
    28     self->ConstructL( aProtocol );
       
    29     CleanupStack::Pop(self);
       
    30     return self;
       
    31     }
       
    32 
       
    33 // ----------------------------------------------------------------------------
       
    34 // ----------------------------------------------------------------------------
       
    35 CIpsSosAOSettingsHandler::CIpsSosAOSettingsHandler() 
       
    36     {
       
    37     }
       
    38 
       
    39 // ----------------------------------------------------------------------------
       
    40 // ----------------------------------------------------------------------------
       
    41 CIpsSosAOSettingsHandler::~CIpsSosAOSettingsHandler()
       
    42     {
       
    43     }
       
    44 
       
    45 // ----------------------------------------------------------------------------
       
    46 // ----------------------------------------------------------------------------
       
    47 void CIpsSosAOSettingsHandler::ConstructL( TUid aProtocol )
       
    48     {
       
    49     iMtmType = aProtocol;
       
    50     }
       
    51 
       
    52 
       
    53 // ----------------------------------------------------------------------------
       
    54 // ----------------------------------------------------------------------------
       
    55 TInt CIpsSosAOSettingsHandler::GetFSPluginId() const
       
    56     {
       
    57     TInt pluginId = 0;
       
    58     if ( iMtmType.iUid == KSenduiMtmImap4UidValue )
       
    59         {
       
    60         pluginId = IPSSOSIMAP4PLUGIN_IMPLEMENTATION_UID;
       
    61         }
       
    62     else if ( iMtmType.iUid == KSenduiMtmPop3UidValue )
       
    63         {
       
    64         pluginId = IPSSOSPOP3PLUGIN_IMPLEMENTATION_UID;
       
    65         }
       
    66     return pluginId;
       
    67     }
       
    68 
       
    69 // ----------------------------------------------------------------------------
       
    70 // ----------------------------------------------------------------------------
       
    71 void CIpsSosAOSettingsHandler::GetSubscribedImapFoldersL( 
       
    72             TMsvId /*aServiceId*/, 
       
    73             RArray<TMsvId>& /*aFoldersArray*/ )
       
    74     {
       
    75     
       
    76     }
       
    77     
       
    78     
       
    79 // ----------------------------------------------------------------------------
       
    80 // ----------------------------------------------------------------------------
       
    81 void CIpsSosAOSettingsHandler::ConstructImapPartialFetchInfo( 
       
    82         TImImap4GetPartialMailInfo& /*aInfo*/, 
       
    83         CImImap4Settings& /*aImap4Settings*/ )
       
    84     {
       
    85     
       
    86     }
       
    87 
       
    88 
       
    89 // ----------------------------------------------------------------------------
       
    90 // ----------------------------------------------------------------------------
       
    91 IpsServices::TIpsSetDataAoStates 
       
    92     CIpsSosAOSettingsHandler::AlwaysOnlineState() const
       
    93     {
       
    94     return IpsServices::EMailAoOff;
       
    95     }
       
    96 
       
    97 // ----------------------------------------------------------------------------
       
    98 // ----------------------------------------------------------------------------
       
    99 void CIpsSosAOSettingsHandler::SetAlwaysOnlineState(
       
   100     const IpsServices::TIpsSetDataAoStates /*aAlwaysOnlineState*/,
       
   101     TBool /*aIgnoreStateFlag*/ )
       
   102     {
       
   103     
       
   104     }
       
   105 
       
   106 // ----------------------------------------------------------------------------
       
   107 // ----------------------------------------------------------------------------
       
   108 IpsServices::TIpsSetDataEmnStates 
       
   109     CIpsSosAOSettingsHandler::EmailNotificationState() const
       
   110     {
       
   111     return IpsServices::EMailEmnOff;
       
   112     }
       
   113 
       
   114 // ----------------------------------------------------------------------------
       
   115 // ----------------------------------------------------------------------------
       
   116 void CIpsSosAOSettingsHandler::SetEmailNotificationState(
       
   117     const IpsServices::TIpsSetDataEmnStates /*aEmnState*/ )
       
   118     {
       
   119     
       
   120     }
       
   121     
       
   122 // ----------------------------------------------------------------------------
       
   123 // ----------------------------------------------------------------------------
       
   124 TBool CIpsSosAOSettingsHandler::FirstEmnReceived() const
       
   125     {
       
   126     return EFalse;
       
   127     }
       
   128 
       
   129 // ----------------------------------------------------------------------------
       
   130 // ----------------------------------------------------------------------------
       
   131 void CIpsSosAOSettingsHandler::SetFirstEmnReceived( TBool /*aValue*/ )
       
   132     {
       
   133     
       
   134     }
       
   135 
       
   136 // ----------------------------------------------------------------------------
       
   137 // ----------------------------------------------------------------------------
       
   138 TBool CIpsSosAOSettingsHandler::EmnReceivedButNotSyncedFlag() const
       
   139     {
       
   140     return EFalse;
       
   141     }
       
   142     
       
   143 // ----------------------------------------------------------------------------
       
   144 // ----------------------------------------------------------------------------
       
   145 void CIpsSosAOSettingsHandler::SetEmnReceivedButNotSyncedFlag( TBool /*aFlag*/ )
       
   146     {
       
   147     
       
   148     }
       
   149 
       
   150 // ----------------------------------------------------------------------------
       
   151 // ----------------------------------------------------------------------------
       
   152 TUint CIpsSosAOSettingsHandler::SelectedWeekDays() const
       
   153     {
       
   154     return 0;
       
   155     }
       
   156 
       
   157 // ----------------------------------------------------------------------------
       
   158 // ----------------------------------------------------------------------------
       
   159 TTime CIpsSosAOSettingsHandler::SelectedTimeStart() const
       
   160     {
       
   161     TTime t = TTime(); 
       
   162     t.HomeTime();
       
   163     return t;
       
   164     }
       
   165 
       
   166 // ----------------------------------------------------------------------------
       
   167 // ----------------------------------------------------------------------------
       
   168 TTime CIpsSosAOSettingsHandler::SelectedTimeStop() const
       
   169     {
       
   170     TTime t = TTime();
       
   171     t.HomeTime();
       
   172     return t;
       
   173     }
       
   174 
       
   175 // ----------------------------------------------------------------------------
       
   176 // ----------------------------------------------------------------------------
       
   177 void CIpsSosAOSettingsHandler::SetLastUpdateInfo( 
       
   178         const IpsServices::TAOInfo& /*aLastUpdateInfo*/ )
       
   179     {
       
   180     
       
   181     }
       
   182 
       
   183 // ----------------------------------------------------------------------------
       
   184 // ----------------------------------------------------------------------------
       
   185 IpsServices::TAOInfo CIpsSosAOSettingsHandler::LastUpdateInfo() const
       
   186     {
       
   187     IpsServices::TAOInfo dummy;
       
   188     return dummy;
       
   189     }
       
   190 
       
   191 // ----------------------------------------------------------------------------
       
   192 // ----------------------------------------------------------------------------
       
   193 TInt CIpsSosAOSettingsHandler::InboxRefreshTime() const
       
   194     {
       
   195     return 0;
       
   196     }
       
   197 
       
   198 // ----------------------------------------------------------------------------
       
   199 // ----------------------------------------------------------------------------
       
   200 TBool CIpsSosAOSettingsHandler::RoamHomeOnlyFlag()
       
   201     {
       
   202     return EFalse;
       
   203     }
       
   204 // End of file
       
   205