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
Pop3Mail.h
Package: Source Code.rar [view]
Upload User: sempras
Upload Date: 2007-03-04
Package Size: 821k
Code Size: 2k
Category:
Symbian
Development Platform:
C/C++
- #ifndef __POP3MAIL_H__
- #define __POP3MAIL_H__
- #include <e32base.h>
- #include <msvapi.h>
- #include <pop3set.h>
- #include <ckncancl.h>
- class CPop3ClientMtm;
- class CMsvEmailUtils;
- /*
- * ============================================================================
- * Name : CPop3Mail from Pop3Mail.h
- * Part of : EmailExample
- * Created : 09/11/2003 by Forum Nokia
- * Implementation notes:
- * Engine class that wraps some Pop3 functionality.
- * Implemented as statemachine.
- *
- * Version : 1.0
- * Copyright: Nokia Corporation
- * ============================================================================
- */
- class CPop3Mail : public CActive, public MMsvSessionObserver,public MCknCancellableOperation
- {
- public:
- // creational
- static CPop3Mail* NewL(TRequestStatus& aStatus,CMsvSession& aMsvSession);
- ~CPop3Mail();
- // interface
- /*
- * FetchRemoteMailL(TMsvId aMailId=NULL)
- *
- * only interface method which initiates multiple state process which
- * connects to remote mailbox and downloads all message headers from
- * remote server.
- *
- * Params:
- * (1) TMsvId aMailId initial entry id
- *
- */
- void FetchRemoteMailL(TMsvId aMailId=NULL);
- // private functions
- private:
- CPop3Mail(TRequestStatus& aStatus,CMsvSession& aMsvSession);
- void ConstructL();
- void ExecuteConnectL();
- void ExecuteFetchMailL();
- void ExecuteDisconnetL();
- void MailCommandL(TInt aCommand,TDes8& aParams);
- void LoadMtmL();
- void Queue();
- // from CActive
- void RunL();
- void DoCancel();
- TInt RunError(TInt aError);
- // from MCknCancellableOperation
- void CancelOperation();
- // from MMsvSessionObserver
- void HandleSessionEventL(TMsvSessionEvent aEvent,TAny* aArg1,TAny* aArg2,TAny* aArg3);
- // private state values for the state machine
- private:
- enum TInternalState
- {
- EInitialising,
- EReady,
- EConnecting,
- EGetRemote,
- EDisconnectRemote,
- EDisconnecting,
- ECanceling
- } ;
- // private data
- private:
- CMsvEmailUtils* iPop3Utils;
- TRequestStatus& iObserverStatus;
- CMsvSession& iMsvSession;
- CPop3ClientMtm* iPop3Mtm;
- TMsvId iServiceId;
- CMsvOperation* iOperation;
- CCknCancelDialog* iDialog;
- TInternalState iState;
- CMsvEntrySelection* iMsvSelection;
- TMsvId iMailId;
- };
- #endif //__POP3MAIL_H__