chxavurlinfo.cpp
来自「著名的 helix realplayer 基于手机 symbian 系统的 播放」· C++ 代码 · 共 59 行
CPP
59 行
/****************************************************************************
* 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;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?