wvuing/wvuiprocess/Inc/mcainviteeditorpc.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:  Interface for Invite operations
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MCAINVITEEDITORPC_H
       
    20 #define MCAINVITEEDITORPC_H
       
    21 
       
    22 
       
    23 // INCLUDES
       
    24 #include "badesca.h"
       
    25 #include "MCAServerContactsArrayPC.h"
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 // CLASS DECLARATION
       
    29 /**
       
    30  *  Inviteeditor interface for UI
       
    31  *
       
    32  *  @lib wvuiprocessng.lib
       
    33  *  @since 3.2
       
    34  */
       
    35 class MCAInviteEditorPC
       
    36 
       
    37     {
       
    38     public:
       
    39         /**
       
    40          * Sends an invitation for joining to a group.
       
    41          * @param aUserIDs specifies the user IDs who are going to receive
       
    42          *        this invitation.
       
    43          * @param aGroupID is the group WV ID.
       
    44          * @param aMessage is the invitation message.
       
    45          */
       
    46         virtual TInt SendInvitationL( const CDesCArray& aUserIDs,
       
    47                                       const TDesC& aGroupID,
       
    48                                       const TDesC& aMessage ) = 0;
       
    49 
       
    50         /**
       
    51          * Gets online friends from Presence API and fetch nicknames also
       
    52          * for contact ID's from Storage.
       
    53          * @return contacts array with wvid's and nicknames
       
    54          */
       
    55         virtual MCAServerContactsArrayPC* GetOnlineFriendsLC( const TDesC& aIconTabulator ) = 0;
       
    56 
       
    57         /**
       
    58          * Populates list of wvids to whom user can send invitation
       
    59          * @since 2.1
       
    60          * @param aInviteList List of user-ids
       
    61          * @param aRawOnlineList Raw data online-list
       
    62          * @param aSelectionArray Array of selected indexes
       
    63          */
       
    64         virtual void PopulateInviteListL( CDesCArray& aInviteList,
       
    65                                           const MCAServerContactsArrayPC& aRawOnlineList,
       
    66                                           const CArrayFixFlat<TInt>& aSelectionArray ) = 0;
       
    67     public:
       
    68 
       
    69         /**
       
    70          * Destructor.
       
    71          */
       
    72         virtual ~MCAInviteEditorPC() {};
       
    73 
       
    74     };
       
    75 
       
    76 #endif      // MCAGROUPPC_H
       
    77 
       
    78 // End of File