removal of Process Qr button
authorKyusung Cho <ks0128.cho@samsung.com>
Sun, 31 Mar 2013 04:07:05 +0000 (13:07 +0900)
committerKyusung Cho <ks0128.cho@samsung.com>
Sun, 31 Mar 2013 04:07:05 +0000 (13:07 +0900)
Change-Id: Ibd01b2fadf287df5b08ce836a37c66a8a4a8b72a
Signed-off-by: Kyusung Cho <ks0128.cho@samsung.com>
project/inc/QrCodeRecognizerSample.h
project/inc/TouchForm.h
project/src/QrCodeRecognizerSample.cpp
project/src/TouchForm.cpp

index 46e6bc7..b2864e5 100644 (file)
@@ -74,9 +74,6 @@ public:
     void OnFormBackRequested(Tizen::Ui::Controls::Form &source);
 
 private:
-
-    void ExecuteQr(Tizen::Base::String);
-
     Tracker*   __pTracker;
     TouchForm* __pForm;
     ControlManager* __pControlManager;
index 9801e3f..e952339 100644 (file)
@@ -34,8 +34,6 @@ public:
     static const RequestId REQUEST_ACTIVATE = 100;
     static const RequestId REQUEST_DEACTIVATE = 101;
 
-    static const int ID_BUTTON_EXECUTE = 503;
-
 private:
     void Activate(void);
     void Deactivate(void);
index fcf8707..df916f7 100644 (file)
@@ -179,15 +179,6 @@ QrCodeRecognizer::OnActionPerformed(const Tizen::Ui::Control& source, int action
 {
     switch(actionId)
     {
-    case TouchForm::ID_BUTTON_EXECUTE:
-    {
-        if(__pTracker)
-        {
-            ExecuteQr(__pTracker->GetTextMessage());
-        }
-    }
-        break;
-        
     case ID_BUTTON_YES:
     {
         //Crushing application without this
@@ -214,48 +205,6 @@ QrCodeRecognizer::OnActionPerformed(const Tizen::Ui::Control& source, int action
 }
 
 void
-QrCodeRecognizer::ExecuteQr(Tizen::Base::String text)
-{
-    if (!text.IsEmpty())
-    {
-       ControlManager* cMan = ControlManager::GetInstance();
-
-       if (text.StartsWith(L"http://", 0) ||
-               text.StartsWith("ftp://", 0) ||
-               text.StartsWith("ftps://", 0) ||
-               text.StartsWith("sftp://", 0) ||
-               text.StartsWith("https://", 0)
-               )
-       {
-           cMan->ShowUrl(text);
-       }
-       else if (text.StartsWith(L"sms:", 0))
-       {
-           Tizen::Base::String _number;
-           Tizen::Base::String _body;
-
-           int _numberStartIndex = 4; // message starting with "sms:" substring with length = 4
-           int _numberFinishIndex;
-           int _messageStartIndex;
-           text.IndexOf(L"?", _numberStartIndex, _numberFinishIndex);
-           text.SubString(_numberStartIndex, _numberFinishIndex - _numberStartIndex, _number);
-           text.IndexOf(L"body=", _numberStartIndex, _messageStartIndex);
-           text.SubString(_messageStartIndex + 5, _body);
-
-           cMan->ShowSms(_number, _body);
-       }
-       else if (text.StartsWith(L"BEGIN:VCARD", 0))
-       {
-           cMan->ShowContact(text);
-       }
-       else
-       {
-           cMan->ShowText(text);
-       }
-    }
-}
-
-void
 QrCodeRecognizer::OnFormBackRequested(Tizen::Ui::Controls::Form &source)
 {
     __pPopup->SetShowState(true);
index e19e6f4..437d5b5 100644 (file)
@@ -40,11 +40,6 @@ TouchForm::OnInitializing(void)
 
     Tizen::Ui::Controls::Footer* pFooter = GetFooter();
 
-    Tizen::Ui::Controls::FooterItem pFooterItemMain;
-    pFooterItemMain.Construct(ID_BUTTON_EXECUTE);
-    pFooterItemMain.SetText(L"Process Qr");
-    pFooter->AddItem(pFooterItemMain);
-
     pFooter->AddActionEventListener(*__pLoadListener);
     SetFormBackEventListener(__pBackListener);
     return r;