diff -r 000000000000 -r 094583676ce7 wvuing/wvuiprocess/Inc/CCAOpenChatsPC.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wvuing/wvuiprocess/Inc/CCAOpenChatsPC.h Thu Dec 17 08:41:52 2009 +0200 @@ -0,0 +1,138 @@ +/* +* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Openchats +* +*/ + + + +#ifndef CCAOPENCHATSPC_H +#define CCAOPENCHATSPC_H + +//includes +#include +#include + +#include "chatdefinitions.h" +#include "MCAOpenChatsPC.h" + +//forward declarations +class MCAArrayItemPC; + +// CLASS DECLARATION + +/** + * CCAOpenChatsPC + * + * @lib wvuiprocessng.dll + * @since 3.2 + */ +class CCAOpenChatsPC : public CBase, + public MCAOpenChatsPC + + { + + public: // From MCAOpenChatsPC + + + /** + * @see MCAOpenChatsPC + */ + const TPtrC GetIdentification( TInt aIndex ); + + + /** + * @see MCAOpenChatsPC + */ + const TPtrC GetId( TInt aIndex ); + + /** + * @see MCAOpenChatsPC + */ + TEnumsPC::TItem GetType( TInt aIndex ); + + /** + * @see MCAOpenChatsPC + */ + TInt Count() const; + + /** + * @see MCAOpenChatsPC + */ + void SetActiveItem( const TInt aIndex ); + + /** + * @see MCAOpenChatsPC + */ + void GetActiveItem( TDesC*& aId, TEnumsPC::TItem& aType ); + + + /** + * @see MCAOpenChatsPC + */ + void SetInvitationIdentification( TDesC* aIdentification ); + + + + public: + + /** + * NewL - returns the instance to CCAOpenChatsPC + */ + static CCAOpenChatsPC* NewL( const RPointerArray& + aOpenChatsArray ); + + + /** + * Destructor + */ + virtual ~CCAOpenChatsPC(); + + + private: //Two phased ctor + + /** + *CCAOpenChatsPC - ctor + */ + CCAOpenChatsPC( const RPointerArray& + aOpenChatsArray ); + + + + /** + *ConstructL + */ + void ConstructL( ); + + private: //Data + + + //Doesn't own + const RPointerArray& iOpenChatsArray; + + //holds the index of the active tab item + TInt iActiveItem; + + //not owned + TDesC* iInvitationIdentification; + + HBufC* iActiveItemId; + + TEnumsPC::TItem iActiveItemType; + + }; + +#endif // CCAOPENCHATSPC_H + +// End of File