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
chxavcallback.h
Package: helix.src.0812.rar [view]
Upload User: zhongxx05
Upload Date: 2007-06-06
Package Size: 33641k
Code Size: 1k
Category:
Symbian
Development Platform:
C/C++
- /************************************************************************
- * chxavcallback.h
- * ---------------
- *
- * Synopsis:
- * Encapsulates single or periodic timer callback
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- ************************************************************************/
- #ifndef _chxavcallback_h_
- #define _chxavcallback_h_
- // Include from this project...
- #include "chxavactivecompletiondispatch.h"
- #include "chxavcommand.h"
- class CHXAvCallback
- {
- public:
- enum CallbackType
- {
- ONCE,
- REPEAT
- };
- CHXAvCallback();
- virtual ~CHXAvCallback();
- void ConstructL(const CHXAvCommand& cmd);
- void Set(TUint msTimeout, CallbackType cbType = ONCE);
- void Stop();
- bool IsPending() const;
- private:
- void OnTimerEvent(TInt status);
- void OnTimerEventCancel(TInt status);
- private:
- CHXAvActiveCmplPtr m_pActiveObject;
- RTimer m_timer;
- CHXAvCommand* m_pAction;
- CallbackType m_cbType;
- TUint m_msTimeout;
- };
- //////////////////////////////////////////
- // return true if callback is pending
- inline
- bool CHXAvCallback::IsPending() const
- {
- return 0 != m_pActiveObject->IsActive();
- }
- #endif // _chxavcallback_h_