phonebookui/Phonebook2/ServerApplication/inc/TPbk2AssignNoteService.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 assign note service.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TPBK2ASSIGNNOTESERVICE_H
       
    20 #define TPBK2ASSIGNNOTESERVICE_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <TVPbkContactStoreUriPtr.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class MPbk2ContactNameFormatter;
       
    28 class CPbk2StorePropertyArray;
       
    29 class MVPbkStoreContact;
       
    30 class MVPbkContactStore;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35  * Phonebook 2 assign note service.
       
    36  * Responsible for:
       
    37  * - displaying all the notes used in contact assign service
       
    38  */
       
    39 class TPbk2AssignNoteService
       
    40     {
       
    41     public: // Construction
       
    42 
       
    43         /**
       
    44          * Constructor.
       
    45          */
       
    46         TPbk2AssignNoteService();
       
    47 
       
    48     public: // Interface
       
    49 
       
    50         /**
       
    51          * Displays information note.
       
    52          *
       
    53          * @param aResourceId   Id of the resource where the note is defined.
       
    54          */
       
    55         void ShowInformationNoteL(
       
    56                 TInt aResourceId ) const;
       
    57 
       
    58         /**
       
    59          * Displays store specific information note.
       
    60          *
       
    61          * @param aResourceId       Id of the resource where the note
       
    62          *                          is defined.
       
    63          * @param aStoreUri         Contact store URI.
       
    64          * @param aStoreProperties  Phonebook 2 contact store properties.
       
    65          */
       
    66         void ShowInformationNoteL(
       
    67                 TInt aResourceId,
       
    68                 TVPbkContactStoreUriPtr aStoreUri,
       
    69                 const CPbk2StorePropertyArray& aStoreProperties ) const;
       
    70 
       
    71         /**
       
    72          * Displays confirmation note.
       
    73          *
       
    74          * @param aResourceId   Id of the resource where the note is defined.
       
    75          * @param aText         Additional text.
       
    76          * @return  Query result.
       
    77          *          @see CAknConfirmationNote::ExecuteLD
       
    78          */
       
    79         TInt ShowConfirmationNoteL(
       
    80                 TInt aResourceId,
       
    81                 const TDesC& aText ) const;
       
    82 
       
    83         /**
       
    84          * Displays replace detail query.
       
    85          *
       
    86          * @param aContactNameFormatter     Contact name formatter.
       
    87          * @param aStoreContact             Store contact.
       
    88          * @return  Query result.
       
    89          *          @see CAknQueryDialog::ExecuteLD
       
    90          */
       
    91         TInt ShowReplaceDetailQueryL(
       
    92                 MPbk2ContactNameFormatter& aContactNameFormatter,
       
    93                 MVPbkStoreContact& aStoreContact ) const;
       
    94 
       
    95         /**
       
    96          * Displays detail added note.
       
    97          *
       
    98          * @param aCount    Number of contacts the detail was added to.
       
    99          */
       
   100         void ShowDetailAddedNoteL(
       
   101                 TInt aCount ) const;
       
   102 
       
   103         /**
       
   104          * Displays can not add detail note.
       
   105          *
       
   106          * @param aContactNameFormatter     Contact name formatter.
       
   107          * @param aStoreContact             Store contact.
       
   108          */
       
   109         void ShowCanNotAddDetailNoteL(
       
   110                 MPbk2ContactNameFormatter& aContactNameFormatter,
       
   111                 MVPbkStoreContact& aStoreContact ) const;
       
   112 
       
   113         /**
       
   114          * Displays create new contact to phone memory query.
       
   115          *
       
   116          * @return  Query result.
       
   117          *          @see CAknQueryDialog::ExecuteLD
       
   118          */
       
   119         TInt ShowCreateNewToPhoneQueryL() const;
       
   120 
       
   121         /**
       
   122          * Shows store full note.
       
   123          *
       
   124          * @param aTargetStore      Contact store.
       
   125          * @param aStoreProperties  Phonebook 2 contact store properties.
       
   126          */
       
   127         void ShowStoreFullNoteL(
       
   128                 const MVPbkContactStore& aTargetStore,
       
   129                 const CPbk2StorePropertyArray& aStoreProperties ) const;
       
   130     };
       
   131 
       
   132 #endif // TPBK2ASSIGNNOTESERVICE_H
       
   133 
       
   134 // End of File