gssettingsuis/Gs/GSFramework/src/GSPluginAndViewIdCache.cpp
branchRCL_3
changeset 14 9941bcf99348
parent 0 8c5d936e5675
equal deleted inserted replaced
13:f392bfb21e08 14:9941bcf99348
    40 // C++ constructor.
    40 // C++ constructor.
    41 //
    41 //
    42 // ---------------------------------------------------------------------------
    42 // ---------------------------------------------------------------------------
    43 //
    43 //
    44 CGSPluginAndViewIdCache::CGSPluginAndViewIdCache( CEikAppUi& aAppUi )
    44 CGSPluginAndViewIdCache::CGSPluginAndViewIdCache( CEikAppUi& aAppUi )
    45 :   iAppUi( aAppUi ), iLookupTable( &HashFunction, &HashIdentityRelation )
    45 :   iAppUi( aAppUi ), iFsSession(CCoeEnv::Static()->FsSession()),iLookupTable( &HashFunction, &HashIdentityRelation )
    46     {
    46     {
    47     }
    47     }
    48 
    48 
    49 // ---------------------------------------------------------------------------
    49 // ---------------------------------------------------------------------------
    50 // CGSPluginAndViewIdCache::~CGSPluginAndViewIdCache
    50 // CGSPluginAndViewIdCache::~CGSPluginAndViewIdCache
    58     //
    58     //
    59     delete iPlaceholderView;
    59     delete iPlaceholderView;
    60     DestroyShims();
    60     DestroyShims();
    61     iLookupTable.Close();
    61     iLookupTable.Close();
    62     //
    62     //
    63     iFsSession.Close();
       
    64     }
    63     }
    65 
    64 
    66 
    65 
    67 // ---------------------------------------------------------------------------
    66 // ---------------------------------------------------------------------------
    68 // CGSPluginAndViewIdCache::ConstructL
    67 // CGSPluginAndViewIdCache::ConstructL
    70 //
    69 //
    71 // ---------------------------------------------------------------------------
    70 // ---------------------------------------------------------------------------
    72 //
    71 //
    73 void CGSPluginAndViewIdCache::ConstructL()
    72 void CGSPluginAndViewIdCache::ConstructL()
    74     {
    73     {
    75     User::LeaveIfError( iFsSession.Connect() );
       
    76     User::LeaveIfError( iFsSession.CreatePrivatePath( EDriveC ) );
    74     User::LeaveIfError( iFsSession.CreatePrivatePath( EDriveC ) );
    77     //
    75     //
    78     iPlaceholderView = CGSPlaceholderView::NewL( iAppUi );
    76     iPlaceholderView = CGSPlaceholderView::NewL( iAppUi );
    79     //
    77     //
    80     TRAP_IGNORE( RestoreL() );
    78     TRAP_IGNORE( RestoreL() );