2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.tizenopensource.org/license
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
23 #include <FSecurity.h>
24 #include "WaitPopup.h"
27 public Osp::Ui::Controls::Form,
28 public Osp::Ui::IActionEventListener,
29 public Osp::Base::Runtime::IRunnable
36 bool Initialize(void);
40 static const int ID_BUTTON_GEN_KEY = 101;
41 static const int ID_BUTTON_AES = 102;
42 static const int ID_BUTTON_RSA = 103;
43 static const int ID_BUTTON_HASH = 104;
44 static const int ID_BUTTON_SIGN = 105;
45 static const int ID_BUTTON_VIEW_CERT = 106;
46 static const int ID_BUTTON_SETTINGS = 107;
48 // Call-back functions
50 virtual result OnInitializing(void);
51 virtual result OnTerminating(void);
52 virtual void OnActionPerformed(const Osp::Ui::Control& source, int actionId);
53 void CreateSendMsgForm();
54 static result GenerateSecret();
55 result PerformRsaEncryption();
56 result PerformAesEncryption();
57 result PerformHashEncryption();
58 result PerformSignEncryption();
59 void SetStatusLable(Osp::Base::String szStatusMsg);
60 Osp::Base::Object* Run (void);
61 virtual void OnUserEventReceivedN(RequestId requestId, Osp::Base::Collection::IList* pArgs);
63 WaitPopup* __pWaitPopup;
64 Osp::Base::Runtime::Thread* __pThread;