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
chxavactivewatcher.h
Package: 142_61_thumb_advanced.rar [view]
Upload User: dangjiwu
Upload Date: 2013-07-19
Package Size: 42019k
Code Size: 2k
Category:
Symbian
Development Platform:
Visual C++
- /************************************************************************
- * chxavactivewatcher.h
- * --------------------
- *
- * Synopsis:
- *
- * base class for classes that request active object
- * event notification from system services
- *
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- ************************************************************************/
- #ifndef _chxavactivewatcher_h_
- #define _chxavactivewatcher_h_
- // Include from this project...
- #include "chxavcommand.h"
- #include "chxavactivecompletiondispatch.h"
- #include "chxavcallback.h"
- // class CHXAvActiveWatcher
- class CHXAvActiveWatcher
- {
- protected:
- // ctor and dtor
- CHXAvActiveWatcher();
- virtual ~CHXAvActiveWatcher();
- void BaseConstructL(TInt activePriority = CActive::EPriorityStandard);
- private:
- // disallow assignment and copy
- CHXAvActiveWatcher(const CHXAvActiveWatcher& rhs);
- CHXAvActiveWatcher& operator=(const CHXAvActiveWatcher& rhs);
- public:
- // methods
- void SetEventActionL(const CHXAvCommand& cmd);
- void SetNotificationDelay(TUint msDelay);
- void WatchForNextEvent();
- void StartWatching();
- void StopWatching();
- bool IsWatching() const;
- protected:
- // implementation
- virtual void OnEvent(TInt status);
- virtual void OnCancelWatch(TInt status);
- virtual void ForwardEvent();
- virtual void DoIssueRequest(const CHXAvActiveCmplPtr& spActive) = 0;
- virtual void DoCancelRequest(const CHXAvActiveCmplPtr& spActive) = 0;
- private:
- // data
- CHXAvActiveCmplPtr m_spWatchObject;
- bool m_bKeepWatching;
- CHXAvCommandPtr m_spEventHandler;
- CHXAvCallback m_cbFowardEvent;
- TUint m_msForwardEventDelay;
- };
- ////////////////////////////////////////////
- // set the handler action to execute upon filesystem event
- inline
- void CHXAvActiveWatcher::SetEventActionL(const CHXAvCommand& cmd)
- {
- m_spEventHandler = cmd.CloneL();
- }
- ////////////////////////////////////////////
- //
- inline
- bool CHXAvActiveWatcher::IsWatching() const
- {
- return m_spWatchObject->IsActive() || m_cbFowardEvent.IsPending();
- }
- ////////////////////////////////////////////
- //
- inline
- void CHXAvActiveWatcher::SetNotificationDelay(TUint msDelay)
- {
- m_msForwardEventDelay = msDelay;
- }
- #endif // _chxavactivewatcher_h_