phonebookui/Phonebook2/inc/CPbk2MergePhotoConflictDlg.h
changeset 0 e686773b3f54
child 3 04ab22b956c2
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     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:  Provides Image conflict resolution dialog
       
    15 *               for Contact Merge command.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef CPBK2MERGEPHOTOCONFLICTDLG_H
       
    20 #define CPBK2MERGEPHOTOCONFLICTDLG_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <e32base.h>
       
    25 #include <AknDialog.h>
       
    26 #include <eiklbo.h>
       
    27 
       
    28 // CLASS DECLARATION
       
    29 class CEikFormattedCellListBox;
       
    30 class CAknNavigationDecorator;
       
    31 class CFbsBitmap;
       
    32 
       
    33 /**
       
    34  *  CPbk2MergePhotoConflictDlg
       
    35  * 
       
    36  */
       
    37 NONSHARABLE_CLASS( CPbk2MergePhotoConflictDlg ) : public CAknDialog,
       
    38                                                   private MEikListBoxObserver
       
    39     {
       
    40 public: // construction
       
    41     
       
    42     /**
       
    43      * Two-phased constructor.
       
    44      */
       
    45     IMPORT_C static CPbk2MergePhotoConflictDlg* NewL( CFbsBitmap* aFirstImage,
       
    46                                                       CFbsBitmap* aSecondImage, 
       
    47                                                       TInt* aResult );
       
    48     
       
    49     /**
       
    50      * Destructor.
       
    51      */
       
    52     ~CPbk2MergePhotoConflictDlg();
       
    53         
       
    54 private: // construction
       
    55     
       
    56     /**
       
    57      * Constructor for performing 1st stage construction
       
    58      */
       
    59     CPbk2MergePhotoConflictDlg( CFbsBitmap* aFirstImage,
       
    60                                 CFbsBitmap* aSecondImage, 
       
    61                                 TInt* aResult );
       
    62     /**
       
    63      * Default constructor for performing 2nd stage construction
       
    64      */
       
    65     void ConstructL();
       
    66 
       
    67 private: // from MEikListBoxObserver
       
    68     
       
    69     void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType );
       
    70     
       
    71 private: // from CAknDialog
       
    72         
       
    73     void PreLayoutDynInitL();
       
    74 
       
    75     TBool OkToExitL( TInt aButtonId );
       
    76 
       
    77     TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    78     
       
    79 private: // new methods
       
    80     
       
    81     void SetIconsL();
       
    82 
       
    83     void SetItemsL();
       
    84 
       
    85     void SwitchRadioButtonL();
       
    86     
       
    87     void SetNaviPaneL();
       
    88     
       
    89     void SetTitlePaneL( TBool aCustom );
       
    90     
       
    91 private: // new methods
       
    92     
       
    93     /// Not own: Pointer for list control
       
    94     CEikFormattedCellListBox* iListBox;
       
    95     /// Own: Navi pane control
       
    96     CAknNavigationDecorator* iNaviDecorator;
       
    97     /// Not own: first bitmap to display
       
    98     CFbsBitmap* iFirstImage; 
       
    99     /// Not own: second bitmap to display
       
   100     CFbsBitmap* iSecondImage;
       
   101     /// Not own: index of selected image
       
   102     TInt* iSelectedItem;
       
   103     /// Own: Selection indicator string
       
   104     HBufC* iSelectedString;
       
   105     };
       
   106 
       
   107 #endif // CPBK2MERGEPHOTOCONFLICTDLG_H