upnpsettings/upnpgsplugin/src/upnpsettingitemmemoryselection.cpp
branchIOP_Improvements
changeset 40 08b5eae9f9ff
parent 39 6369bfd1b60d
child 41 b4d83ea1d6e2
equal deleted inserted replaced
39:6369bfd1b60d 40:08b5eae9f9ff
     1 /*
       
     2 * Copyright (c) 2007 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:      CUPnPSettingItemMemorySelection class implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #include <upnpgspluginrsc.rsg>
       
    24 #include <StringLoader.h>
       
    25 #include <akncheckboxsettingpage.h>
       
    26 #include <AknCommonDialogsDynMem.h>
       
    27 #include <CAknMemorySelectionDialogMultiDrive.h>
       
    28 
       
    29 #include "upnpsettingitemmemoryselection.h"
       
    30 
       
    31 _LIT( KComponentLogfile, "upnpgsplugin.txt");
       
    32 #include "upnplog.h"
       
    33 
       
    34 // ================= MEMBER FUNCTIONS =======================
       
    35 
       
    36 // --------------------------------------------------------------------------
       
    37 // CUPnPSettingItemMemorySelection::NewL
       
    38 // --------------------------------------------------------------------------
       
    39 //
       
    40 CUPnPSettingItemMemorySelection* CUPnPSettingItemMemorySelection::NewL(
       
    41                                 TInt aIdentifier,
       
    42                                 TDriveNumber& aSelectedDrive )
       
    43     {
       
    44     __LOG("[gsplugin]\t CUPnPSettingItemMemorySelection::NewL");
       
    45 
       
    46     CUPnPSettingItemMemorySelection* self =
       
    47         new (ELeave) CUPnPSettingItemMemorySelection(
       
    48             aIdentifier,
       
    49             aSelectedDrive );
       
    50 
       
    51     CleanupStack::PushL(self);
       
    52     self->ConstructL();
       
    53     CleanupStack::Pop(self);
       
    54     return self;
       
    55     }
       
    56 
       
    57 // --------------------------------------------------------------------------
       
    58 // CUPnPSettingItemMemorySelection::ConstructL
       
    59 // --------------------------------------------------------------------------
       
    60 //
       
    61 void CUPnPSettingItemMemorySelection::ConstructL()
       
    62     {
       
    63         __LOG("[gsplugin]\t\
       
    64 CUPnPSettingItemMemorySelection::ConstructL");
       
    65 
       
    66     }
       
    67 
       
    68 // --------------------------------------------------------------------------
       
    69 // CUPnPSettingItemMemorySelection::~CUPnPSettingItemMemorySelection()
       
    70 // --------------------------------------------------------------------------
       
    71 //
       
    72 CUPnPSettingItemMemorySelection::~CUPnPSettingItemMemorySelection()
       
    73     {
       
    74         __LOG("[gsplugin]\t\
       
    75 CUPnPSettingItemMemorySelection::~CUPnPSettingItemMemorySelection");
       
    76 
       
    77     }
       
    78 
       
    79 // --------------------------------------------------------------------------
       
    80 // CUPnPSettingItemMemorySelection::EditItemL( TBool aCalledFromMenu )
       
    81 // --------------------------------------------------------------------------
       
    82 //
       
    83 void CUPnPSettingItemMemorySelection::EditItemL( TBool /*aCalledFromMenu*/ )
       
    84     {
       
    85     __LOG("[gsplugin]\t CUPnPSettingItemMemorySelection::EditItemL");
       
    86     
       
    87     CAknMemorySelectionDialogMultiDrive* dlg =
       
    88         CAknMemorySelectionDialogMultiDrive::NewL(
       
    89             ECFDDialogTypeNormal,
       
    90             0,
       
    91             EFalse,
       
    92             AknCommonDialogsDynMem::EMemoryTypePhone |
       
    93             AknCommonDialogsDynMem::EMemoryTypeInternalMassStorage |
       
    94             AknCommonDialogsDynMem::EMemoryTypeMMCExternal 
       
    95             );
       
    96             
       
    97             CleanupStack::PushL(dlg);
       
    98 
       
    99             if (dlg->ExecuteL(iInternalData))
       
   100             {
       
   101                 // Call CAknMemorySelectionSettingItemMultiDrive::StoreL()
       
   102                 StoreL();
       
   103             }
       
   104 
       
   105             CleanupStack::PopAndDestroy(dlg);
       
   106     
       
   107     }
       
   108 
       
   109 // --------------------------------------------------------------------------
       
   110 // CUPnPSettingItemMemorySelection::CUPnPSettingItemMemorySelection
       
   111 // --------------------------------------------------------------------------
       
   112 //
       
   113 CUPnPSettingItemMemorySelection::CUPnPSettingItemMemorySelection(
       
   114     TInt aIdentifier,
       
   115     TDriveNumber& aSelectedDrive//,
       
   116      ) :
       
   117     CAknMemorySelectionSettingItemMultiDrive( aIdentifier, aSelectedDrive )
       
   118     {
       
   119     }
       
   120 
       
   121 
       
   122 // End of File
       
   123