wvuing/wvuiprocess/Inc/CCAGroupPropertiesPC.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:  Implementation for PC Group properties dialog
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CCAGGROUPPROPERTIESPC_H
       
    20 #define CCAGGROUPPROPERTIESPC_H
       
    21 
       
    22 // INCLUDES
       
    23 #include	"mcagrouppropertiespc.h"
       
    24 #include	"MCAChatObserver.h"
       
    25 #include	"MCAGroupEventObserver.h"
       
    26 #include	"MCAMessageErrorObserver.h"
       
    27 #include	"MCAMessageRWInterfacePC.h"
       
    28 #include    <impsgroupprops.h>
       
    29 
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 class CCAEngine;
       
    33 class MCAStoredGroups;
       
    34 class MCAStoredGroup;
       
    35 class MCAGroupManagerInterface;
       
    36 class MCAGroupOperations;
       
    37 class MCAStoredContacts;
       
    38 
       
    39 
       
    40 //class declaration
       
    41 /**
       
    42  *  @lib wvuiprocessng.lib
       
    43  *  @since 3.2
       
    44  */
       
    45 class CCAGroupPropertiesPC:  public CBase,
       
    46             public MCAGroupPropertiesPC
       
    47 
       
    48     {
       
    49 
       
    50     public:
       
    51 
       
    52         /**
       
    53         * Symbian Two Phase Constructor
       
    54         * @param aEngine : a reference to chat engine
       
    55         */
       
    56         static CCAGroupPropertiesPC* NewL( MCAGroupManagerInterface& aGroupMgrInterface  );
       
    57 
       
    58 
       
    59         /**
       
    60         * Second phased symbian constructor.
       
    61         */
       
    62         void ConstructL();
       
    63 
       
    64         /**
       
    65         * virtual destructor
       
    66         */
       
    67         virtual ~CCAGroupPropertiesPC();
       
    68 
       
    69     public: //From MCAGroupPropertiesPC
       
    70 
       
    71         /**
       
    72          * @see MCAGroupPropertiesPC
       
    73          */
       
    74         TInt NumberOfCreatedGroupsDuringSession();
       
    75 
       
    76 
       
    77         /**
       
    78         * @see MCAGroupPropertiesPC
       
    79         */
       
    80         const TPtrC GetIdentificationL( const TDesC& aContactId );
       
    81 
       
    82 
       
    83         /**
       
    84         * @see MCAGroupPropertiesPC
       
    85         */
       
    86         TEnumsPC::TImpsPropertyBoolPC IsSearchable( ) ;
       
    87 
       
    88         /**
       
    89          * @see MCAGroupPropertiesPC
       
    90          */
       
    91         virtual TInt InitializeForEdittingL( const TDesC& aGroupId );
       
    92 
       
    93         /**
       
    94          * @see MCAGroupPropertiesPC
       
    95          */
       
    96         virtual TBool IsJoined( const TDesC& aGroupId ) const;
       
    97 
       
    98         /**
       
    99         * @see MCAGroupPropertiesPC
       
   100         */
       
   101         virtual TBool IsOwnGroup( const TDesC& aGroupId ) const ;
       
   102 
       
   103         /**
       
   104          * @see MCAGroupPropertiesPC
       
   105          */
       
   106         virtual TBool IsAdmin( const TDesC& aGroupId ) const ;
       
   107 
       
   108         /**
       
   109          * @see MCAGroupPropertiesPC
       
   110          */
       
   111         virtual TBool IsFavouriteChatGroup( const TDesC& aGroupId ) const;
       
   112 
       
   113         /**
       
   114         * @see MCAGroupPropertiesPC
       
   115         */
       
   116         virtual TBool FindGroup( const TDesC& aGroupId ) const;
       
   117 
       
   118         /**
       
   119         * @see MCAGroupPropertiesPC
       
   120         */
       
   121         virtual const TDesC& GetGroupName( const TDesC& aGroupId ) const;
       
   122 
       
   123         /**
       
   124         * @see MCAGroupPropertiesPC
       
   125         */
       
   126         virtual TEnumsPC::TImpsPropertyBoolPC IsPrivateAllowed();
       
   127 
       
   128         /**
       
   129          * @see MCAGroupPropertiesPC
       
   130          */
       
   131         virtual TEnumsPC::TImpsPropertyBoolPC IsOpen();
       
   132 
       
   133         /**
       
   134          * @see MCAGroupPropertiesPC
       
   135          */
       
   136         virtual void SetOpen( TEnumsPC::TImpsPropertyBoolPC aType );
       
   137 
       
   138     public:
       
   139 
       
   140         /**
       
   141          * To convert the impsengine side TImpsPropertyBool enum to PC side
       
   142          * TImpsPropertyBoolPC
       
   143          * @param aEventSource: enum type in impsengine TImpsPropertyBool
       
   144          * @return TEnumsPC::TImpsPropertyBoolPC
       
   145          */
       
   146         TEnumsPC::TImpsPropertyBoolPC ConvertTImpsPropertyBoolToTEnumsPC
       
   147         ( TImpsPropertyBool aEventSource );
       
   148 
       
   149         /*
       
   150          * This method will be called by the grouputilspc component after the
       
   151          * groupproperties dialog has exited. The member variable
       
   152          * iImpsCommonGropuProps of this class will contain the edited or newly
       
   153          * created group's properties. This method will return the same instance
       
   154          * of editted properties to the grouputilspc.
       
   155          * @return CImpsCommonGroupProps instance: holds the saved changes to
       
   156          * the properties of a group
       
   157          */
       
   158         CImpsCommonGroupProps* GetEdittedProperties();
       
   159 
       
   160     public:
       
   161         //common group properties to be used by edit group properties only
       
   162         CImpsCommonGroupProps* iGroupPropsForGrpPropDialog;
       
   163 
       
   164     public: //include inline functions file
       
   165 #include "CCAGroupPropertiesPC.inl"
       
   166 
       
   167     private:
       
   168 
       
   169         /**
       
   170         * default constructor
       
   171         * @param aGroupMgrInterface : a reference to group manager interface in the engine component
       
   172         */
       
   173         CCAGroupPropertiesPC( MCAGroupManagerInterface& aGroupMgrInterface  );
       
   174 
       
   175     private:
       
   176 
       
   177 
       
   178         //Doesnt own,Handle to chat groups interface
       
   179         MCAStoredGroups* iChatGroups;
       
   180 
       
   181         //Doesn't own. Group interface
       
   182         MCAGroupManagerInterface& iGroupMgrInterface;
       
   183 
       
   184         //Doesnt own, Handle to Interface for stored contacts
       
   185         MCAStoredContacts* iStoredContacts;
       
   186 
       
   187 
       
   188         //private group props to be used by edit group properties only
       
   189         CImpsPrivateGroupProps* iPrivatePropsForGrpPropDialog;
       
   190 
       
   191     };
       
   192 
       
   193 #endif      // CCAGGROUPPROPERTIESDIALOGPC_H
       
   194 
       
   195 // End of File