phonebookui/Phonebook2/USIMExtension/inc/TPsu2SimCopyResults.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Phonebook 2 SIM copy results.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TPSU2SIMCOPYRESULTS_H
       
    20 #define TPSU2SIMCOPYRESULTS_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32std.h>
       
    24 
       
    25 // CLASS DECLARATION
       
    26 
       
    27 /**
       
    28  *  Phonebook 2 SIM copy results.
       
    29  */
       
    30 class TPsu2SimCopyResults
       
    31     {
       
    32     public:  // Constructors and destructor
       
    33 
       
    34         /**
       
    35          * Constructor.
       
    36          */
       
    37         TPsu2SimCopyResults();
       
    38 
       
    39         /**
       
    40          * C++ constructor.
       
    41          * Used for showing multiple copy notes.
       
    42          *
       
    43          * @param aCopied   Number of succesfully copied contacts.
       
    44          * @param aTotal    Total number of contacts to copy.
       
    45          */
       
    46         TPsu2SimCopyResults(
       
    47                 TInt aCopied,
       
    48                 TInt aTotal );
       
    49 
       
    50         /**
       
    51          * C++ constructor.
       
    52          * Used for showing single copy notes.
       
    53          *
       
    54          * @param aCopied   Number of succesfully copied contacts.
       
    55          * @param aName     Name of the contact.
       
    56          */
       
    57         TPsu2SimCopyResults(
       
    58                 TInt aCopied,
       
    59                 const TDesC& aName );
       
    60 
       
    61     public: // Interface
       
    62 
       
    63         /**
       
    64          * Shows the copy results note.
       
    65          */
       
    66         void ShowNoteL();
       
    67 
       
    68         /**
       
    69          * Shows the copy error note.
       
    70          */
       
    71         void ShowErrorNoteL();
       
    72 
       
    73         /**
       
    74          * Shows the partly copied note.
       
    75          */
       
    76         void ShowPartlyCopiedNoteL();
       
    77 
       
    78     private: // Implementation
       
    79         void ShowSingleCopyNoteL();
       
    80         void ShowMultipleCopyNoteL();
       
    81 
       
    82     private: // Data
       
    83         /// Own: Number of succesfully copied contacts
       
    84         TInt iCopied;
       
    85         /// Own: Number of contacts that were not copied
       
    86         TInt iNotCopied;
       
    87         /// Own: Contact name
       
    88         TPtrC iName;
       
    89     };
       
    90 
       
    91 #endif // TPSU2SIMCOPYRESULTS_H
       
    92 
       
    93 // End of File