chxavurlinfo.cpp
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:1k
- /****************************************************************************
- * chxavurlinfo.cpp
- * ----------------
- *
- * Synopsis:
- * Contains the implementations of the CHXAvURLInfo class. It's basically
- * a neat way to keep track of a url and it's corresponding title.
- *
- *
- * Target:
- * Symbian OS
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- *****************************************************************************/
- // Includes from this project...
- #include "chxavurlinfo.h"
- #include "chxavstringutils.h"
- CHXAvURLInfo::CHXAvURLInfo(const CHXString& url, const CHXString& title)
- {
- m_url = CHXAvStringUtils::StringToHBuf(url);
- m_title = CHXAvStringUtils::StringToHBuf(title);
- }
- CHXAvURLInfo::CHXAvURLInfo(const TDesC& url, const TDesC& title)
- {
- m_url = url.Alloc();
- m_title = title.Alloc();
- }
- CHXAvURLInfo::~CHXAvURLInfo()
- {
- delete m_url;
- delete m_title;
- }
- const TDesC&
- CHXAvURLInfo::URL() const
- {
- if (m_url && m_url->Length() > 0)
- return *m_url;
- else
- return KNullDesC;
- }
- const TDesC&
- CHXAvURLInfo::Title() const
- {
- if (m_title && m_title->Length() > 0)
- return *m_title;
- else
- return KNullDesC;
- }