browserutilities/feedsengine/FeedsServer/Client/src/FeedRequestHandlers.cpp
changeset 0 dd21522fd290
child 25 0ed94ceaa377
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2005 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 the License "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:  Feed related client side request handlings.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <FeedsServerFeed.h>
       
    20 #include <S32Mem.h>
       
    21 #include <es_sock.h>
       
    22 
       
    23 #include "FeedRequestHandlers.h"
       
    24 
       
    25 // -----------------------------------------------------------------------------
       
    26 // CFeedRequestHandler::NewL
       
    27 //
       
    28 // Two-phased constructor.
       
    29 // -----------------------------------------------------------------------------
       
    30 CFeedRequestHandler* CFeedRequestHandler::NewL()
       
    31     {
       
    32     CFeedRequestHandler* self = new (ELeave) CFeedRequestHandler();
       
    33     self->ConstructL();
       
    34     return self;
       
    35     }
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // CFeedRequestHandler::ConstructL
       
    39 //
       
    40 // Symbian 2nd phase constructor can leave.
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 void CFeedRequestHandler::ConstructL()
       
    44     {   
       
    45     }
       
    46 
       
    47 // -----------------------------------------------------------------------------
       
    48 // CFeedRequestHandler::CFeedRequestHandler
       
    49 //
       
    50 // C++ default constructor can NOT contain any code, that
       
    51 // might leave.
       
    52 // -----------------------------------------------------------------------------	
       
    53 CFeedRequestHandler::CFeedRequestHandler():iOperationRequested(EFalse), iFeedsInterface(NULL)
       
    54     {
       
    55     }
       
    56 
       
    57 // -----------------------------------------------------------------------------
       
    58 // CFeedRequestHandler::~CFeedRequestHandler
       
    59 //
       
    60 // Deconstructor.
       
    61 // -----------------------------------------------------------------------------
       
    62 CFeedRequestHandler::~CFeedRequestHandler()
       
    63     {
       
    64     iFeedsInterface = NULL;	
       
    65     }
       
    66 
       
    67 // -----------------------------------------------------------------------------
       
    68 // CFeedRequestHandler::GetFeedInterface
       
    69 //
       
    70 // Deconstructor.
       
    71 // -----------------------------------------------------------------------------
       
    72  RFeedsInterface* CFeedRequestHandler::GetFeedInterface()
       
    73     {
       
    74     return iFeedsInterface;
       
    75     }
       
    76 
       
    77 // -----------------------------------------------------------------------------
       
    78 // CFeedRequestHandler::SetFeedInterface
       
    79 //
       
    80 // Deconstructor.
       
    81 // -----------------------------------------------------------------------------
       
    82  void CFeedRequestHandler::SetFeedInterface(RFeedsInterface*  aFeedsInterface)
       
    83     {
       
    84     iFeedsInterface = aFeedsInterface;
       
    85     }
       
    86 	
       
    87 // -----------------------------------------------------------------------------
       
    88 // CFeedRequestHandler::GetOperationRequested
       
    89 //
       
    90 // Deconstructor.
       
    91 // -----------------------------------------------------------------------------
       
    92  TBool CFeedRequestHandler::GetOperationRequested()
       
    93     {
       
    94     return iOperationRequested;
       
    95     }
       
    96 
       
    97 // -----------------------------------------------------------------------------
       
    98 // CFeedRequestHandler::SetOperationRequested
       
    99 //
       
   100 // Deconstructor.
       
   101 // -----------------------------------------------------------------------------
       
   102  void CFeedRequestHandler::SetOperationRequested(TInt aOperationRequested)
       
   103     {
       
   104     iOperationRequested = aOperationRequested;
       
   105     }