wvuing/wvuiprocess/Inc/CCAApplicationNGPC.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2006 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:  PC Implementation for app ui
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CCAAPPLICATIONNGPC_H
       
    20 #define CCAAPPLICATIONNGPC_H
       
    21 
       
    22 #include <e32base.h>
       
    23 // INCLUDES
       
    24 #include	"MCAApplicationNGPC.h"
       
    25 #include    "MCAMessagesReadInterface.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CCAEngine;
       
    29 class MCAStoredContacts;
       
    30 
       
    31 
       
    32 //class declaration
       
    33 /**
       
    34  *  @lib wvuiprocessng.lib
       
    35  *  @since 3.2
       
    36  */
       
    37 class CCAApplicationNGPC:  public CBase,
       
    38             public MCAApplicationNGPC
       
    39 
       
    40     {
       
    41 
       
    42     public:
       
    43 
       
    44         /**
       
    45         * Symbian Two Phase Constructor
       
    46         * @param aEngine : a reference to chat engine
       
    47         */
       
    48         static CCAApplicationNGPC* NewL( CCAEngine& aEngine );
       
    49 
       
    50 
       
    51         /**
       
    52         * Second phased symbian constructor.
       
    53         */
       
    54         void ConstructL();
       
    55 
       
    56         /**
       
    57         * virtual destructor
       
    58         */
       
    59         virtual ~CCAApplicationNGPC();
       
    60 
       
    61     public:
       
    62 
       
    63         /**
       
    64          * Enable or disable WV hiding
       
    65          * @param aHiding ETrue if hidden
       
    66          */
       
    67         virtual void SetWVHiding( TInt aHide );
       
    68         /**
       
    69          * Enable or disable WV Prefix hiding
       
    70          * @param aHiding ETrue if hidden
       
    71          */
       
    72         virtual void SetWVHidingPrefixOnly( TInt aHide ); //UI CR : 101-39728
       
    73         /**
       
    74         * Enable or disable Capitalization of contactlists
       
    75         * @param aCapital ETrue if capitalizing is enabled.
       
    76         */
       
    77         void SetCapitalizingEnabled( TInt aCapital ); //UI CR : 101-39727
       
    78 
       
    79         /**
       
    80          * Identification of contact. This is resolved from known
       
    81          * identifications.
       
    82          * Alias, nickname and contactId.
       
    83          * Nickname is shown if set.
       
    84          * @param aContactId Id of contact which identification needed.
       
    85          * @return Identification of contact.
       
    86          *      Alias if nickname is not set and alias is enabled.
       
    87          *      Wvid without domain and prefix if nickname does not
       
    88                 exists and alias is not enabled or not exists.
       
    89          */
       
    90         virtual const TPtrC Identification( const TDesC& aContactId );
       
    91 
       
    92         /**
       
    93          * Count of pending messages
       
    94          * @return count of messages.
       
    95          */
       
    96         virtual TInt MessagesPendingCount( TInt& aCountOfChats,
       
    97                                            TEnumsPC::TUnreadFilter aUnreadFilter =
       
    98                                                TEnumsPC::EUnreadAll );
       
    99 
       
   100         /**
       
   101          * Count of unread chat group messages.
       
   102          * @since v3.2
       
   103          * Count of pending messages for groups
       
   104          * @return count of messages.
       
   105          */
       
   106         TInt ChatGroupMessagesPendingCount( TInt &aCountOfChats ) const;
       
   107 
       
   108     private:
       
   109         MCAMessagesReadInterface::TUnreadFilter
       
   110         ConvertToEngineUnreadFilter( TEnumsPC::TUnreadFilter aUnreadFilter );
       
   111 
       
   112 
       
   113     private:
       
   114 
       
   115         /**
       
   116         * default constructor
       
   117         * @param aEngine : Reference to the engine component
       
   118         */
       
   119         CCAApplicationNGPC( CCAEngine& aEngine );
       
   120 
       
   121     private:
       
   122 
       
   123         //Reference to the engine component
       
   124         CCAEngine& iEngine;
       
   125 
       
   126         //Doesnt own, Handle to Interface for stored contacts
       
   127         MCAStoredContacts* iStoredContacts;
       
   128 
       
   129     };
       
   130 
       
   131 #endif      // CCAAPPLICATIONNGPC_H
       
   132 
       
   133 // End of File