本文整理汇总了C++中tizen::base::String::GetPointer方法的典型用法代码示例。如果您正苦于以下问题:C++ String::GetPointer方法的具体用法?C++ String::GetPointer怎么用?C++ String::GetPointer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tizen::base::String
的用法示例。
在下文中一共展示了String::GetPointer方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
bool
LocationMapForm::OnLoadingRequested(const Tizen::Base::String& url, WebNavigationType type)
{
AppLog("%S",url.GetPointer());
SetUrl(url);
return false;
}
示例2: OnPushServiceRegistered
void Chatting::OnPushServiceRegistered(RequestId reqId,
const Tizen::Base::String& registrationId, result r,
const Tizen::Base::String& errorCode,
const Tizen::Base::String& errorMsg) {
if (r == E_SUCCESS) {
// The registrationId may change in some cases.
// If the registrationId changes, the application should send the registrationId to the application server.
AppLog("####### Push registration is successful. #######");
AppLog(
"####### registrationId = %S #######", registrationId.GetPointer());
if (registrationId.Equals(regIdList[0])) {
resultRegId =
"04a1a6b9f06851233d3392efe419021613dbcec57ba833da007a5fe87ba59d5963eb0f943802ab188b06014c3fc034fcb70e";
} else {
resultRegId =
"04a173e35ebec95baab94ae8d77a84a76903911ea65dcf67cf2570b9649bef4c8e3f0710ae2f5f2b6969c6b8b119de9c78f7";
}
} else {
AppLog(
"####### Push registration is failed with result[%s]. #######", GetErrorMessage(r));
}
}
示例3: OnFastScrollIndexSelected
void UsersPanel::OnFastScrollIndexSelected(Tizen::Ui::Control& source, Tizen::Base::String& index) {
AppLog("OnFastScrollIndexSelected %ls", index.GetPointer());
String upperLetter;
index.ToUpper(upperLetter);
AppLog("Upper letter %ls", index.GetPointer());
Integer * pos = static_cast<Integer *>(_pLetterNav->GetValue(upperLetter));
if (pos != null) {
int item = pos->ToInt();
AppLog("Found at %d.", item);
_pTableView->ScrollToItem(item, -1);
Invalidate(true);
} else {
AppLog("Pointer is null...");
}
}
示例4: Construct
result UserGroup::Construct(const Tizen::Base::String & groupName, const JsonArray * usersArray) {
result r = E_SUCCESS;
AppLog("Adding %d items to array, named %ls", usersArray->GetCount(), groupName.GetPointer());
_pGroupName = new String(groupName);
delete _pUserList;
_pUserList = usersArray->CloneN();
// _pUserList->AddItems(*usersArray);
return r;
}
示例5: Construct
result RoundedAvatar::Construct(const Tizen::Graphics::Rectangle & rect, const Tizen::Base::String &avatarPath) {
result r = E_SUCCESS;
imageUrl = avatarPath;
AppLog("construct rounded avatar based on url: %ls", avatarPath.GetPointer());
Panel::Construct(rect, GROUP_STYLE_NONE);
if (imageUrl.GetLength() != 0) {
Bitmap *bitmap = VKUApp::GetInstance()->GetBitmapCache()->TakeBitmap(imageUrl, this);
if(bitmap != null) {
pAvatar = bitmap;
}
}
return r;
}
示例6: OnTransactionReadyToRead
void GHPlayerController::OnTransactionReadyToRead(Tizen::Base::String apiCode, Tizen::Base::String statusCode, Tizen::Web::Json::IJsonValue* data)
{
AppLogDebug("[DEBUG] apiCode : %S", apiCode.GetPointer() );
AppLogDebug("[DEBUG] statusCode : %S", statusCode.GetPointer());
if(pProgressPopup->IsVisible()) {
pProgressPopup->SetShowState(false);
}
if(apiCode.Equals(PLAYER_LOGIN)) {
// 정상적으로 결과를 반환했을 때
if(statusCode != "0") {
// Save AppRegistry Data(Email, Password)----------
appReg.put(appReg.email, playerEmail);
appReg.put(appReg.pwd, playerPwd);
//------------------------------------------------
GHSharedAuthData & sharedInstance = GHSharedAuthData::getSharedInstance();
sharedInstance.setPlayerId(statusCode);
if(this->currentListener != null) this->currentListener->loginPlayerFinished(statusCode);
}
else { // 에러가 발생했을 때
}
}
else if(apiCode.Equals(PLAYER_PLAYERDATA)) { // PLAYER_PLAYERDATA
GHPlayer *player;
// 정상적으로 결과를 반환했을 때
if(statusCode == "1") {
JsonObject *pJsonOject = static_cast<JsonObject*>(data);
AppLogDebug("---------------------------2-----------------------");
String* pkeyId = new String(L"player_id");
String* pkeyEmail = new String(L"email");
String* pkeyName = new String(L"name");
String* pkeyImgUrl = new String(L"img_url");
String* pkeyIsFriend= new String(L"is_friend");
String sId = getStringByKey(pJsonOject, pkeyId);
String sEmail = getStringByKey(pJsonOject, pkeyEmail);
String sName = getStringByKey(pJsonOject, pkeyName);
String sImgUrl = getStringByKey(pJsonOject, pkeyImgUrl);
bool bIsFriend = getBoolByKey(pJsonOject, pkeyIsFriend);
AppLogDebug("--------------------------------------------------");
player = new GHPlayer(sId, sEmail, sName, sImgUrl);
player->setIsFriend(bIsFriend);
// KEY NAME DELETE
delete pkeyId; delete pkeyEmail;
delete pkeyName; delete pkeyImgUrl;
delete pkeyIsFriend;
}
else { // 에러가 발생했을 때
player = null;
}
if(this->currentListener != null) this->currentListener->loadPlayerDataFinished(player);
}
else if(apiCode.Equals(PLAYER_GAMELIST))
{
ArrayList *gameList;
// 정상적으로 결과를 반환했을 때
if(statusCode == "1") {
JsonArray* pJsonArray = static_cast<JsonArray*>(data);
int arrNum = pJsonArray->GetCount();
gameList = new ArrayList();
// KEY NAME
String* pKeyGameId = new String(L"game_id");
String* pKeyGameTitle = new String(L"title");
String* pkeyGameImgUrl = new String(L"img_url");
String* pKeyGameDesc = new String(L"description");
AppLogDebug("[DEBUG] arrNum : %d", arrNum );
for(int i=0; i<arrNum; i++) {
JsonObject *pJsonOject = getJsonObjectByIndex(pJsonArray, i);
// 데이터 파싱
String sGameId = getStringByKey(pJsonOject, pKeyGameId);
String sGameTitle = getStringByKey(pJsonOject, pKeyGameTitle);
String sGameImgUrl = getStringByKey(pJsonOject, pkeyGameImgUrl);
String sGameDesc = getStringByKey(pJsonOject, pKeyGameDesc);
// 리스트에 추가
gameList->Add( new GHGame(sGameId, "", sGameTitle, sGameDesc, sGameImgUrl, 0, 0, 0, false, false) );
}
// KEY NAME DELETE
delete pKeyGameId; delete pKeyGameTitle; delete pkeyGameImgUrl;
}
//.........这里部分代码省略.........
示例7: AppLog
void
ProfileListForm::SaveUsingmodeProfile(Tizen::Base::String title,
int year,
int month,
int day,
int hour,
int minute,
int year2,
int month2,
int day2,
int hour2,
int minute2,
double latitude,
double longitude,
int volume,
int wifi,
Tizen::Base::String memo)
{
AppLog("%s, %s", title.GetPointer(), memo.GetPointer());
DbStatement* pStmt;
DbEnumerator* pEnum;
long long id;
Tizen::System::SystemTime::GetTicks(id);
__pProfileDatabase->BeginTransaction();
if (__isUpdateMode) {
pStmt = __pProfileDatabase->CreateStatementN(L"UPDATE profile SET title = ?, "
"year = ?, month = ?, day = ?, hour = ?, minute = ?, "
"year2 = ?, month2 = ?, day2 = ?, hour2 = ?, minute2 = ?, "
"latitude = ?, longitude = ?, volume = ?, wifi = ?, memo = ? WHERE id = ?");
pStmt->BindString(0, title);
pStmt->BindInt(1, year);
pStmt->BindInt(2, month);
pStmt->BindInt(3, day);
pStmt->BindInt(4, hour);
pStmt->BindInt(5, minute);
pStmt->BindInt(6, year);
pStmt->BindInt(7, month);
pStmt->BindInt(8, day);
pStmt->BindInt(9, hour);
pStmt->BindInt(10, minute);
pStmt->BindDouble(11, latitude);
pStmt->BindDouble(12, longitude);
pStmt->BindInt(13, volume);
pStmt->BindInt(14, wifi);
pStmt->BindString(15, memo);
Integer* itemId = static_cast<Integer*>(__pIndexList.GetAt(__currentIndex));
pStmt->BindInt(16, itemId->ToInt());
__isUpdateMode = false;
} else {
AppLog("Normal Save");
pStmt = __pProfileDatabase->CreateStatementN(L"INSERT INTO profile (id, title, "
"year, month, day, hour, minute, "
"year2, month2, day2, hour2, minute2, "
"latitude, longitude, volume, wifi, memo) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
pStmt->BindInt(0, id);
pStmt->BindString(1, title);
pStmt->BindInt(2, year);
pStmt->BindInt(3, month);
pStmt->BindInt(4, day);
pStmt->BindInt(5, hour);
pStmt->BindInt(6, minute);
pStmt->BindInt(7, year2);
pStmt->BindInt(8, month2);
pStmt->BindInt(9, day2);
pStmt->BindInt(10, hour2);
pStmt->BindInt(11, minute2);
pStmt->BindDouble(12, latitude);
pStmt->BindDouble(13, longitude);
pStmt->BindInt(14, volume);
pStmt->BindInt(15, wifi);
pStmt->BindString(16, memo);
}
pEnum = __pProfileDatabase->ExecuteStatementN(*pStmt);
__pProfileDatabase->CommitTransaction();
delete pStmt;
delete pEnum;
ListUpdate();
}