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
hxsym_leaveutil.cpp
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++
- /************************************************************************
- * hxsym_leaveutil.cpp.cpp
- * -------------
- *
- * Synopsis:
- * helpers to simplify working with helix api interfaces
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- ************************************************************************/
- #include "hxtypes.h"
- #include <eikenv.h>
- #include "chxavmisc.h"
- #include "hxsym_debug.h"
- #include "chxavcleanupstack.h"
- #include "chxavcleanstring.h"
- #include "chxavfileutil.h"
- #include "chxavstringutils.h"
- #include "hxsym_leaveutil.h"
- //XXXLCM shouldn't be included for final realease
- namespace
- {
- //
- // Allocate text message to show when we leave (indicates location where we leave from)
- //
- HBufC* AllocLeaveErrorTextL(TInt err, const char* pszFile, int line)
- {
- _LIT(KLeaveFormat, "Error: %S(%d): code = %d");
- CHXAvCleanString file(pszFile);
- // strip of path from filename
- TPtrC ptrFile = CHXAvFile::GetNakedPathNode(file());
- TUint cchText = ptrFile.Length() + 50;
- HBufC* pText = HBufC::NewL(cchText);
- TPtr ptrText = pText->Des();
- ptrText.Format(KLeaveFormat, &ptrFile, line, err);
- return pText;
- }
- } // locals
- void hxsym::DoLeaveErrorMsgL(const char* pszFile, int line, TInt err)
- {
- HBufC* pText = AllocLeaveErrorTextL(err, pszFile, line);
- AUTO_PUSH_POP_DEL(pText);
- CHXAvMessageDialog::DoAlertErrorL(*pText);
- }