|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : MessagingSender.h 00004 * Part of : Messaging 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2005-2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 #ifndef MESSAGINGSENDER_H 00017 #define MESSAGINGSENDER_H 00018 00019 #define MESSAGE_SUBJECT "Example message" 00020 // INCLUDES 00021 00022 #include "MessagingContainer.h" 00023 00024 00025 00026 // FORWARD DECLARATIONS 00027 00028 // CLASS DECLARATION 00029 00030 /** 00031 * Message Sender class 00032 * Implements sending of SMS, MMS and email messages. 00033 * 00034 * 00035 */ 00036 class CMessagingSender 00037 { 00038 public: // Constructors and destructor 00039 /** 00040 * NewL. 00041 * Two-phased constructor. 00042 * Construct a CMessagingSender using two phase construction, 00043 * and return a pointer to the created object 00044 * @return A pointer to the created instance of CMessagingSender 00045 * @param A reference to CMessagingContainer 00046 */ 00047 static CMessagingSender* NewL( const CMessagingContainer& aContainer ); 00048 00049 /** 00050 * NewLC. 00051 * Two-phased constructor. 00052 * Construct a CMessagingSender using two phase construction, 00053 * and return a pointer to the created object 00054 * @return A pointer to the created instance of CMessagingSender 00055 * @param A reference to CMessagingContainer 00056 */ 00057 static CMessagingSender* NewLC( const CMessagingContainer& aContainer ); 00058 00059 /** 00060 * Destructor. 00061 */ 00062 ~CMessagingSender(); 00063 00064 private: 00065 /** 00066 * EPOC default constructor. 00067 * @param A reference to CMessagingContainer 00068 */ 00069 void ConstructL( const CMessagingContainer& aContainer ); 00070 00071 public: // New functions 00072 00073 TInt SendMessage( /*aReceiver, aMessage, aMessagetype */ ); 00074 private: 00075 void Initialise(); 00076 00077 private: //Data 00078 CMessagingContainer& iContainer; 00079 }; 00080 00081 #endif 00082 00083 // End of File
|
© Nokia 2006 |