widgetmanager/src/wmiconfileprovider.cpp
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2 * Copyright (c) 2009 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 * CWmIconFileProvider implementation.
       
    16 *
       
    17 */
       
    18 
       
    19 #include "wmcommon.h"
       
    20 #include "wmiconfileprovider.h"
       
    21 
       
    22 // ---------------------------------------------------------------------------
       
    23 // CWmIconFileProvider::CWmIconFileProvider
       
    24 // ---------------------------------------------------------------------------
       
    25 //
       
    26 CWmIconFileProvider::CWmIconFileProvider( RFs& aFs )
       
    27     :iFs( aFs )
       
    28     {
       
    29     }
       
    30 
       
    31 // ---------------------------------------------------------------------------
       
    32 // CWmIconFileProvider::~CWmIconFileProvider
       
    33 // ---------------------------------------------------------------------------
       
    34 //
       
    35 CWmIconFileProvider::~CWmIconFileProvider()
       
    36     {
       
    37     }
       
    38 
       
    39 // ---------------------------------------------------------------------------
       
    40 // CWmIconFileProvider::SetIconFile
       
    41 // ---------------------------------------------------------------------------
       
    42 //
       
    43 void CWmIconFileProvider::SetIconFile( const TDesC& aFileName )
       
    44     { 
       
    45     iFileName.Copy( aFileName ); 
       
    46     }
       
    47 
       
    48 // ---------------------------------------------------------------------------
       
    49 // CWmIconFileProvider::NewL
       
    50 // ---------------------------------------------------------------------------
       
    51 //
       
    52 CWmIconFileProvider* CWmIconFileProvider::NewL( RFs& aFs )
       
    53     {
       
    54     CWmIconFileProvider* self = new (ELeave) CWmIconFileProvider( aFs );
       
    55     CleanupStack::PushL(self);
       
    56     self->ConstructL();
       
    57     CleanupStack::Pop(); // self
       
    58     return self;
       
    59     }
       
    60 
       
    61 // ---------------------------------------------------------------------------
       
    62 // CWmIconFileProvider::ConstructL
       
    63 // ---------------------------------------------------------------------------
       
    64 //
       
    65 void CWmIconFileProvider::ConstructL()
       
    66     {
       
    67     }
       
    68 
       
    69 // ---------------------------------------------------------------------------
       
    70 // CWmIconFileProvider::RetrieveIconFileHandleL
       
    71 // ---------------------------------------------------------------------------
       
    72 //
       
    73 void CWmIconFileProvider::RetrieveIconFileHandleL( 
       
    74     RFile& aFile, 
       
    75     const TIconFileType /*aType*/ )
       
    76     {
       
    77 	User::LeaveIfError( aFile.Open( iFs, iFileName, EFileShareAny ) );
       
    78     }
       
    79 
       
    80 // ---------------------------------------------------------------------------
       
    81 // CWmIconFileProvider::Finished
       
    82 // ---------------------------------------------------------------------------
       
    83 //
       
    84 void CWmIconFileProvider::Finished()
       
    85     {
       
    86     }
       
    87 
       
    88 // end of file
       
    89