homesync/contentmanager/cmserver/cmfillmanager/src/cmfmglxnotifier.cpp
branchIOP_Improvements
changeset 40 08b5eae9f9ff
parent 39 6369bfd1b60d
child 41 b4d83ea1d6e2
equal deleted inserted replaced
39:6369bfd1b60d 40:08b5eae9f9ff
     1 /*
       
     2 * Copyright (c) 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:  Gallery notifier
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include <f32file.h>
       
    21 #include <ContentListingFactory.h>
       
    22 #include <MCLFContentListingEngine.h>
       
    23 #include "cmfmglxnotifier.h"
       
    24 #include "msdebug.h"    
       
    25 
       
    26 
       
    27 // ---------------------------------------------------------------------------
       
    28 // CCmFmGlxNotifier::NewL
       
    29 // ---------------------------------------------------------------------------
       
    30 // 
       
    31 CCmFmGlxNotifier* CCmFmGlxNotifier::NewL( RFs& aFS )
       
    32     {
       
    33     LOG(_L("[FILL MNGR]\t CCmFmGlxNotifier::NewL() start"));    
       
    34     CCmFmGlxNotifier* self = CCmFmGlxNotifier::NewLC( aFS );
       
    35     CleanupStack::Pop( self );
       
    36     LOG(_L("[FILL MNGR]\t CCmFmGlxNotifier::NewL() end"));
       
    37     return self;
       
    38     }
       
    39 
       
    40 // ---------------------------------------------------------------------------
       
    41 // CCmFmGlxNotifier::NewLC
       
    42 // ---------------------------------------------------------------------------
       
    43 //    
       
    44 CCmFmGlxNotifier* CCmFmGlxNotifier::NewLC( RFs& aFS )
       
    45     {
       
    46     LOG(_L("[FILL MNGR]\t CCmFmGlxNotifier::NewLC() start"));    
       
    47     CCmFmGlxNotifier* self = new ( ELeave ) CCmFmGlxNotifier( );
       
    48     CleanupStack::PushL( self );
       
    49     self->ConstructL( aFS );
       
    50     LOG(_L("[FILL MNGR]\t CCmFmGlxNotifier::NewLC() end"));
       
    51     return self;  
       
    52     }    
       
    53 
       
    54 // ---------------------------------------------------------------------------
       
    55 // CCmFmGlxNotifier::~CCmFmGlxNotifier
       
    56 // ---------------------------------------------------------------------------
       
    57 // 
       
    58 CCmFmGlxNotifier::~CCmFmGlxNotifier()
       
    59     {
       
    60     LOG(_L("[FILL MNGR]\t CCmFmGlxNotifier::~CCmFmGlxNotifier()"));
       
    61     }
       
    62 
       
    63 // ---------------------------------------------------------------------------
       
    64 // CCmFmGlxNotifier::CCmFmGlxNotifier
       
    65 // ---------------------------------------------------------------------------
       
    66 // 
       
    67 CCmFmGlxNotifier::CCmFmGlxNotifier( )
       
    68     {
       
    69     LOG(_L("[FILL MNGR]\t CCmFmGlxNotifier::CCmFmGlxNotifier()"));
       
    70     }
       
    71 
       
    72 // ---------------------------------------------------------------------------
       
    73 // CCmFmGlxNotifier::ConstructL
       
    74 // ---------------------------------------------------------------------------
       
    75 //     
       
    76 void CCmFmGlxNotifier::ConstructL( RFs& /*aFS*/ )
       
    77     {        
       
    78     LOG(_L("[FILL MNGR]\t CCmFmGlxNotifier::ConstructL()"));
       
    79     }    
       
    80 
       
    81 // ---------------------------------------------------------------------------
       
    82 // CCmFmGlxNotifier::NotifyGalleryL
       
    83 // ---------------------------------------------------------------------------
       
    84 //     
       
    85 void CCmFmGlxNotifier::NotifyGalleryL( const TDesC& /*aFullPath*/ )
       
    86     {
       
    87     LOG(_L("[FILL MNGR]\t CCmFmGlxNotifier::NotifyGalleryL()"));
       
    88     
       
    89     MCLFContentListingEngine* clfEngine = 
       
    90             ContentListingFactory::NewContentListingEngineLC();
       
    91     
       
    92     TRAP_IGNORE( clfEngine->UpdateItemsL() );
       
    93     
       
    94     CleanupStack::PopAndDestroy(); // clfEngine
       
    95     }
       
    96 
       
    97 // ---------------------------------------------------------------------------
       
    98 // CCmFmGlxNotifier::NotifyGalleryL
       
    99 // ---------------------------------------------------------------------------
       
   100 // 
       
   101 void CCmFmGlxNotifier::NotifyGalleryL()
       
   102     {
       
   103     LOG(_L("[FILL MNGR]\t CCmFmGlxNotifier::NotifyGalleryL()"));
       
   104    
       
   105     MCLFContentListingEngine* clfEngine = 
       
   106             ContentListingFactory::NewContentListingEngineLC();
       
   107             
       
   108     TRAP_IGNORE( clfEngine->UpdateItemsL() );
       
   109     
       
   110     CleanupStack::PopAndDestroy(); // clfEngine
       
   111     }        
       
   112         
       
   113 // End of file
       
   114 
       
   115 
       
   116