sapi_messaging/messagingservice/inc/messagedetail.h
changeset 0 14df0fbfcc4e
equal deleted inserted replaced
-1:000000000000 0:14df0fbfcc4e
       
     1 /*
       
     2 * Copyright (c) 2007 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 the License "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:  Defination of class CMessageDetail
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MESSAGEDETAIL_H
       
    20 #define __MESSAGEDETAIL_H
       
    21 
       
    22 
       
    23 /**
       
    24  * This class provides function to get the message details. 
       
    25  * For SMS message, it gives bodytext, sender and recipient info.
       
    26  * For MMS, it gives list of attachment information, recipient, sender.
       
    27  */
       
    28 class CMessageDetail : public CBase
       
    29 	{
       
    30 
       
    31 	public:
       
    32 	    /**
       
    33 	     * Two-phased constructor.
       
    34 	     * @param aServerSession  It is an object of CMsvSession Class which
       
    35 	     *        represents a channel of communication between a client thread  
       
    36 	     *        and the Message Server thread .
       
    37 	     * @return CMessageDetail
       
    38 	    */
       
    39 
       
    40 		static CMessageDetail* NewL( CMsvSession& aServerSession );
       
    41 
       
    42 	    /** 
       
    43 	     * Destructor.
       
    44 	    */
       
    45 		~CMessageDetail();
       
    46 	
       
    47 	private:
       
    48 
       
    49 	    /** 
       
    50 	     * Constructor.
       
    51 	     * @param aServerSession  It is an object of CMsvSession Class which
       
    52 	     *        represents a channel of communication between a client thread  
       
    53 	     *        and the Message Server thread .
       
    54 	    */
       
    55 		CMessageDetail( CMsvSession& aServerSession );
       
    56 	
       
    57 	
       
    58 	public:
       
    59 
       
    60 		/**
       
    61 		 * Gets the message details.
       
    62 		 * Issues the synchronous or asynchronous request for function call 
       
    63 		 * depending on the aNotifyCallback.
       
    64 		 * @param aMessageId    Message Entry Id
       
    65 		 * @param aMessageDetail Return parameter for synchronous call
       
    66 		 * @return void 
       
    67 		*/ 
       
    68 		void GetMessageDetailL( TMsvId aMessageId, 
       
    69 								CMessageDetailInfo*& aMessageDetail );
       
    70 
       
    71 	private:
       
    72 
       
    73 		/**
       
    74 		 * Starts get detail request
       
    75 		 * @return void
       
    76 		*/ 
       
    77 		void ProcessRequestL();
       
    78 		
       
    79 		/**
       
    80 		 * Gets the Sender Recipient information for SMS
       
    81 		 * @return void
       
    82 		*/ 
       
    83 		void GetSmsSenderRecipientL();
       
    84 
       
    85 		/**
       
    86 		 * Gets the Sender Recipient information for MMS
       
    87 		 * @return void
       
    88 		*/ 
       
    89 		void GetMmsSenderRecipientL();
       
    90 
       
    91 
       
    92 	private:
       
    93 
       
    94 		/**
       
    95 		 * Represents a channel of communication between a client thread 
       
    96 		 * and the Message Server thread
       
    97 		*/ 
       
    98 	 	CMsvSession& 			iServerSession;
       
    99 
       
   100 		/**
       
   101 		 * Message Id
       
   102 		*/ 
       
   103 	 	TMsvId					iMessageId;
       
   104 
       
   105 		/**
       
   106 		 * Message detail
       
   107 		*/ 
       
   108 		CMessageDetailInfo* 	iMessageDetail;
       
   109 	};
       
   110 
       
   111 
       
   112 #endif __MESSAGEDETAIL_H