vmbx/vmbxengine/inc/vmbxsatrefreshobserver.h
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     1 /*
       
     2 * Copyright (c) 2009-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:  Observer to Sat refresh
       
    15 *  Interface   : Private, CVmbxSatRefreshObserver
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef C_VMBXSATREFRESHOBSERVERR_H
       
    21 #define C_VMBXSATREFRESHOBSERVERR_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <rsatsession.h>
       
    26 #include <rsatrefresh.h>
       
    27 #include <msatrefreshobserver.h>
       
    28 #include "mvmbxsatrefreshobserver.h"
       
    29 
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 *  Implements functionality specifig to voice mailbox entry
       
    38 *
       
    39 
       
    40 *  @lib vmbxengine.lib
       
    41 */
       
    42 NONSHARABLE_CLASS( CVmbxSatRefreshObserver ) : public CBase,
       
    43                               public MSatRefreshObserver
       
    44     {
       
    45 
       
    46 public:  // Constructors and destructor
       
    47 
       
    48     /**
       
    49      * Two-phased constructor
       
    50      * @param in aObserver observer which want to notify sat refresh
       
    51      */
       
    52     static CVmbxSatRefreshObserver* NewL( MVmbxSatRefreshObserver& aObserver );
       
    53 
       
    54     /**
       
    55      * Destructor.
       
    56      */
       
    57     virtual ~CVmbxSatRefreshObserver();
       
    58 
       
    59 public: // from base class MSatRefreshObserver
       
    60 
       
    61     /**
       
    62      * @See MSatRefreshObserver::AllowRefresh
       
    63      */
       
    64     TBool AllowRefresh( TSatRefreshType aType,
       
    65                         const TSatRefreshFiles& aFiles ) ;
       
    66 
       
    67     /**
       
    68      * @See MSatRefreshObserver::Refresh
       
    69      */
       
    70     void Refresh( TSatRefreshType aType, const TSatRefreshFiles& aFiles );
       
    71 
       
    72 private:
       
    73 
       
    74     /**
       
    75      * C++ default constructor.
       
    76      * @param aObserver Reference to MVmbxSatRefreshObserver
       
    77      */
       
    78     CVmbxSatRefreshObserver( MVmbxSatRefreshObserver& aObserver);
       
    79 
       
    80     /**
       
    81      * By default Symbian 2nd phase constructor is private.
       
    82      */
       
    83     void ConstructL();
       
    84 
       
    85 private: // data
       
    86 
       
    87     /**
       
    88      * Sat server session
       
    89      * Own
       
    90      */
       
    91     RSatSession iRSatSession;
       
    92 
       
    93     /**
       
    94      * Sat refresh connection
       
    95      * Own
       
    96      */
       
    97     RSatRefresh iSatRefresh;
       
    98 
       
    99     /**
       
   100      * A package for the TRefreshFileList.
       
   101      * list of files, waiting for notification.
       
   102      */
       
   103     RSat::TRefreshFileList iObservedFileList;
       
   104 
       
   105     /**
       
   106      * Reference to MVmbxSatRefreshObserver
       
   107      */
       
   108     MVmbxSatRefreshObserver& iObserver;
       
   109     };
       
   110 
       
   111 #endif  // C_VMBXSATREFRESHOBSERVERR_H