phonebookui/Phonebook2/NewContactLauncher/inc/NewContactLauncherAppUi.h
changeset 0 e686773b3f54
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: Declares UI class for application.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __NEWCONTACTLAUNCHERAPPUI_h__
       
    19 #define __NEWCONTACTLAUNCHERAPPUI_h__
       
    20 
       
    21 // INCLUDES
       
    22 #include <aknappui.h>
       
    23 #include <aiwdialdataext.h>
       
    24 #include <aknPopup.h>
       
    25 #include <AiwCommon.hrh>
       
    26 #include <AiwServiceHandler.h>
       
    27 #include <aiwdialdata.h>
       
    28 #include <AiwCommon.h>
       
    29 #include <AiwContactSelectionDataTypes.h>
       
    30 #include <AiwContactAssignDataTypes.h>
       
    31 #include <AiwVariant.h>
       
    32 
       
    33 // FORWARD DECLARATIONS
       
    34 class CNewContactLauncherAppView;
       
    35 
       
    36 // CLASS DECLARATION
       
    37 /**
       
    38  * CNewContactLauncherAppUi application UI class.
       
    39  * Interacts with the user through the UI and request message processing
       
    40  * from the handler class
       
    41  */
       
    42 class CNewContactLauncherAppUi : public CAknAppUi,public MAiwNotifyCallback
       
    43     {
       
    44 public:
       
    45     // Constructors and destructor
       
    46 
       
    47     /**
       
    48      * ConstructL.
       
    49      * 2nd phase constructor.
       
    50      */
       
    51     void ConstructL();
       
    52 
       
    53     /**
       
    54      * CNewContactLauncherAppUi.
       
    55      * C++ default constructor. This needs to be public due to
       
    56      * the way the framework constructs the AppUi
       
    57      */
       
    58     CNewContactLauncherAppUi();
       
    59 
       
    60     /**
       
    61      * ~CNewContactLauncherAppUi.
       
    62      * Virtual Destructor.
       
    63      */
       
    64     virtual ~CNewContactLauncherAppUi();
       
    65     
       
    66     /**
       
    67     * Proceses message from external application
       
    68     * Used from Phonebooks external tab (Buddylist) to start instant
       
    69     * messaging or from xmpp server to show new messages
       
    70     *
       
    71     * @since S60 v3.0
       
    72     * @param aUid       Uid somethig. Needed to get this function called
       
    73     * @param aParamData Data for processing
       
    74     */
       
    75 
       
    76     void ProcessMessageL( TUid aUid, const TDesC8& aParamData );
       
    77     
       
    78 private:
       
    79     // Functions from base classes
       
    80 
       
    81     void HandleStatusPaneSizeChange();
       
    82 
       
    83 private: //from MAiwNotifyCallback.
       
    84         TInt HandleNotifyL(
       
    85                     TInt aCmdId,
       
    86                     TInt aEventId,
       
    87                     CAiwGenericParamList& aEventParamList,
       
    88                     const CAiwGenericParamList& aInParamList);
       
    89                 
       
    90 private:
       
    91     // Data
       
    92 
       
    93     /**
       
    94      * The application view
       
    95      * Owned by CNewContactLauncherAppUi
       
    96      */
       
    97     CNewContactLauncherAppView* iAppView;
       
    98     
       
    99     /**
       
   100      * Owned by CNewContactLauncherAppUi
       
   101      */
       
   102     CAiwGenericParamList* iAiwParamList;
       
   103         
       
   104     /**
       
   105      * Owned by CNewContactLauncherAppUi
       
   106      */
       
   107     CAiwServiceHandler *iServiceHandler;
       
   108     
       
   109     TInt iResourceOffset;
       
   110 
       
   111     };
       
   112 
       
   113 #endif // __NEWCONTACTLAUNCHERAPPUI_h__
       
   114 // End of File