Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
MMSExample.h
Package: Source Code.rar [view]
Upload User: sempras
Upload Date: 2007-03-04
Package Size: 821k
Code Size: 3k
Category:
Symbian
Development Platform:
C/C++
- /*
- MMSExample.H - header file for MMSExample application
- */
- #ifndef __MMSEXAMPLE_H__
- #define __MMSEXAMPLE_H__
- #if !defined(__AKNVIEW_H__)
- #include <aknview.h> // for CAknView
- #endif
- #if !defined(__AKNVIEWAPPUI_H__)
- #include <aknviewappui.h> // for CAknViewAppUi
- #endif
- #if !defined(__EIKAPP_H__)
- #include <eikapp.h> // for CEikApplication
- #endif
- #if !defined(__EIKDOC_H__)
- #include <eikdoc.h> // for CEikDocument
- #endif
- #if !defined(__MSVAPI_H__)
- #include <msvapi.h> // for MMsvSessionObserver
- #endif
- #if !defined(__MMSCLIENT_H__)
- #include <mmsclient.h> // for CMmsClientMtm
- #endif
- // Forward declarations
- class CClientMtmRegistry;
- class CMsvSession;
- //
- // Container class to draw text on screen
- //
- class CMMSExampleContainer : public CCoeControl
- {
- public:
- void ConstructL();
- private:
- void Draw(const TRect& aRect) const;
- };
- //
- // Application View class
- //
- class CMMSExampleAppView : public CAknView
- {
- public:
- static CMMSExampleAppView* NewL();
- static CMMSExampleAppView* NewLC();
- ~CMMSExampleAppView();
- public:
- TUid Id() const;
- protected:
- private:
- void DoActivateL(const TVwsViewId& /*aPrevViewId*/, TUid /*aCustomMessageId*/, const TDesC8& /*aCustomMessage*/);
- void DoDeactivate();
- private:
- CMMSExampleAppView();
- void ConstructL();
- private:
- CMMSExampleContainer* iContainer;
- };
- //
- // Application Ui class, this contains all application functionality
- //
- class CMMSExampleAppUi : public CAknViewAppUi, public MMsvSessionObserver
- {
- public:
- void ConstructL();
- ~CMMSExampleAppUi();
- void HandleCommandL(TInt aCommand);
- private:
- void CompleteConstructL();
- void CmdSendL();
- void CmdExitL();
- TBool InitializeCommunicationsL();
- void CreateNewMessageL();
- TBool SendMessageL();
- private: // from MMsvSessionObserver
- void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3);
- private:
- HBufC* iRecipient; // recipients address
- CMsvSession* iSession; // Client session on the message server
- CMmsClientMtm* iMmsMtm; // Message Type Module (MMS)
- CClientMtmRegistry* iMtmReg; // Mtm client registry for creating new mtms
- };
- //
- // Application document class
- //
- class CMMSExampleDocument : public CEikDocument
- {
- public:
- static CMMSExampleDocument* NewL(CEikApplication& aApp);
- CEikAppUi* CreateAppUiL();
- protected:
- private:
- CMMSExampleDocument(CEikApplication& aApp);
- void ConstructL();
- };
- //
- // Application class
- //
- class CMMSExampleApplication : public CEikApplication
- {
- public:
- TUid AppDllUid() const;
- private:
- CApaDocument* CreateDocumentL();
- };
- #endif // __MMSEXAMPLE_H__