omads/omadsextensions/adapters/agenda/src/nsmlagendaprogressview.cpp
branchRCL_3
changeset 24 8e7494275d3a
parent 1 95fdac6ccb5c
child 25 4f0867e42d62
equal deleted inserted replaced
23:2bb96f4ecad8 24:8e7494275d3a
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 
    19 
    20 // INCLUDES
    20 // INCLUDES
    21 #include "nsmlagendadebug.h"
    21 #include "nsmldebug.h"
    22 #include "nsmlagendadatastore.h"
    22 #include "nsmlagendadatastore.h"
    23 #include <nsmldebug.h>
       
    24 
    23 
    25 // ===================================== MEMBER FUNCTIONS ======================
    24 // ===================================== MEMBER FUNCTIONS ======================
    26 // -----------------------------------------------------------------------------
    25 // -----------------------------------------------------------------------------
    27 // CNSmlAgendaProgressview::NewL
    26 // CNSmlAgendaProgressview::NewL
    28 // Two-phased constructor.
    27 // Two-phased constructor.
    29 // -----------------------------------------------------------------------------
    28 // -----------------------------------------------------------------------------
    30 CNSmlAgendaProgressview* CNSmlAgendaProgressview::NewL()
    29 CNSmlAgendaProgressview* CNSmlAgendaProgressview::NewL()
    31 	{
    30 	{
    32 	FLOG(_L("CNSmlAgendaProgressview::NewL(): BEGIN"));
    31 	_DBG_FILE("CNSmlAgendaProgressview::NewL(): BEGIN");
    33 	CNSmlAgendaProgressview* self = new (ELeave) CNSmlAgendaProgressview();
    32 	CNSmlAgendaProgressview* self = new (ELeave) CNSmlAgendaProgressview();
    34 	self->ConstructL();
    33 	self->ConstructL();
    35 	FLOG(_L("CNSmlAgendaProgressview::NewL(): END"));
    34 	_DBG_FILE("CNSmlAgendaProgressview::NewL(): END");
    36 	return self;
    35 	return self;
    37 	}
    36 	}
    38 	
    37 	
    39 // -----------------------------------------------------------------------------
    38 // -----------------------------------------------------------------------------
    40 // CNSmlAgendaProgressview::~CNSmlAgendaProgressview
    39 // CNSmlAgendaProgressview::~CNSmlAgendaProgressview
    41 // Destructor.
    40 // Destructor.
    42 // -----------------------------------------------------------------------------
    41 // -----------------------------------------------------------------------------
    43 CNSmlAgendaProgressview::~CNSmlAgendaProgressview()
    42 CNSmlAgendaProgressview::~CNSmlAgendaProgressview()
    44 	{
    43 	{
    45 	FLOG(_L("CNSmlAgendaProgressview::~CNSmlAgendaProgressview(): BEGIN"));
    44 	_DBG_FILE("CNSmlAgendaProgressview::~CNSmlAgendaProgressview(): BEGIN");
    46 	// Nothing to do
    45 	// Nothing to do
    47 	FLOG(_L("CNSmlAgendaProgressview::~CNSmlAgendaProgressview(): END"));
    46 	_DBG_FILE("CNSmlAgendaProgressview::~CNSmlAgendaProgressview(): END");
    48 	}
    47 	}
    49 
    48 
    50 // -----------------------------------------------------------------------------
    49 // -----------------------------------------------------------------------------
    51 // CNSmlAgendaProgressview::Progress
    50 // CNSmlAgendaProgressview::Progress
    52 // This calls the observing class with the percentage complete of the current
    51 // This calls the observing class with the percentage complete of the current
    53 // operation.
    52 // operation.
    54 // -----------------------------------------------------------------------------
    53 // -----------------------------------------------------------------------------
    55 void CNSmlAgendaProgressview::Progress( TInt /*aPercentageCompleted*/ )
    54 void CNSmlAgendaProgressview::Progress( TInt /*aPercentageCompleted*/ )
    56 	{
    55 	{
    57 	FLOG(_L("CNSmlAgendaProgressview::Progress(): BEGIN"));
    56 	_DBG_FILE("CNSmlAgendaProgressview::Progress(): BEGIN");
    58 	FLOG(_L("CNSmlAgendaProgressview::Progress(): END"));
    57 	_DBG_FILE("CNSmlAgendaProgressview::Progress(): END");
    59 	}
    58 	}
    60 	
    59 	
    61 // -----------------------------------------------------------------------------
    60 // -----------------------------------------------------------------------------
    62 // CNSmlAgendaProgressview::Completed
    61 // CNSmlAgendaProgressview::Completed
    63 // This calls the observing class when the current operation is finished.
    62 // This calls the observing class when the current operation is finished.
    64 // -----------------------------------------------------------------------------
    63 // -----------------------------------------------------------------------------
    65 void CNSmlAgendaProgressview::Completed( TInt aError )
    64 void CNSmlAgendaProgressview::Completed( TInt aError )
    66 	{
    65 	{
    67 	FLOG(_L("CNSmlAgendaProgressview::Completed(): BEGIN"));
    66 	_DBG_FILE("CNSmlAgendaProgressview::Completed(): BEGIN");
    68 
    67 
    69     iCompletedStatus = aError;
    68     iCompletedStatus = aError;
    70 	CActiveScheduler::Stop();
    69 	CActiveScheduler::Stop();
    71 
    70 
    72     FLOG(_L("CNSmlAgendaProgressview::Completed(): END"));
    71     _DBG_FILE("CNSmlAgendaProgressview::Completed(): END");
    73 	}
    72 	}
    74 
    73 
    75 // -----------------------------------------------------------------------------
    74 // -----------------------------------------------------------------------------
    76 // CNSmlAgendaProgressview::GetCompletedStatus
    75 // CNSmlAgendaProgressview::GetCompletedStatus
    77 // This method returns status of Completed method (see above).
    76 // This method returns status of Completed method (see above).
    85 // CNSmlAgendaProgressview::NotifyProgress
    84 // CNSmlAgendaProgressview::NotifyProgress
    86 // Asks the observing class whether progress callbacks are required.
    85 // Asks the observing class whether progress callbacks are required.
    87 // -----------------------------------------------------------------------------
    86 // -----------------------------------------------------------------------------
    88 TBool CNSmlAgendaProgressview::NotifyProgress()
    87 TBool CNSmlAgendaProgressview::NotifyProgress()
    89 	{
    88 	{
    90 	FLOG(_L("CNSmlAgendaProgressview::NotifyProgress(): BEGIN"));
    89 	_DBG_FILE("CNSmlAgendaProgressview::NotifyProgress(): BEGIN");
    91 	FLOG(_L("CNSmlAgendaProgressview::NotifyProgress(): END"));
    90 	_DBG_FILE("CNSmlAgendaProgressview::NotifyProgress(): END");
    92 	return EFalse;
    91 	return EFalse;
    93 	}
    92 	}
    94 
    93 
    95 // -----------------------------------------------------------------------------
    94 // -----------------------------------------------------------------------------
    96 // CNSmlAgendaProgressview::CNSmlAgendaProgressview
    95 // CNSmlAgendaProgressview::CNSmlAgendaProgressview
    97 // C++ default constructor.
    96 // C++ default constructor.
    98 // -----------------------------------------------------------------------------
    97 // -----------------------------------------------------------------------------
    99 CNSmlAgendaProgressview::CNSmlAgendaProgressview() :
    98 CNSmlAgendaProgressview::CNSmlAgendaProgressview() :
   100 	iCompletedStatus( KErrNotReady )
    99 	iCompletedStatus( KErrNotReady )
   101 	{
   100 	{
   102 	FLOG(_L("CNSmlAgendaProgressview::CNSmlAgendaProgressview(): BEGIN"));
   101 	_DBG_FILE("CNSmlAgendaProgressview::CNSmlAgendaProgressview(): BEGIN");
   103 	// Nothing to do
   102 	// Nothing to do
   104 	FLOG(_L("CNSmlAgendaProgressview::CNSmlAgendaProgressview(): END"));
   103 	_DBG_FILE("CNSmlAgendaProgressview::CNSmlAgendaProgressview(): END");
   105 	}
   104 	}
   106 	
   105 	
   107 // -----------------------------------------------------------------------------
   106 // -----------------------------------------------------------------------------
   108 // CNSmlAgendaProgressview::ConstructL
   107 // CNSmlAgendaProgressview::ConstructL
   109 // Second phase constructor.
   108 // Second phase constructor.
   110 // -----------------------------------------------------------------------------
   109 // -----------------------------------------------------------------------------
   111 void CNSmlAgendaProgressview::ConstructL()
   110 void CNSmlAgendaProgressview::ConstructL()
   112     {
   111     {
   113     FLOG(_L("CNSmlAgendaProgressview::ConstructL(): BEGIN"));
   112     _DBG_FILE("CNSmlAgendaProgressview::ConstructL(): BEGIN");
   114     // Nothing to do
   113     // Nothing to do
   115     FLOG(_L("CNSmlAgendaProgressview::ConstructL(): END"));
   114     _DBG_FILE("CNSmlAgendaProgressview::ConstructL(): END");
   116     }
   115     }
   117 
   116 
   118 //  End of File  
   117 //  End of File