virtual void OnCalendarTodosChanged(const Tizen::Base::Collection::IList &todoChangeInfoList);
private:
- Tizen::Social::Calendarbook __calendarbook;
+ Tizen::Social::Calendarbook* __pCalendarbook;
Tizen::Social::RecordId __eventId;
}; // SharePopup
int __buttonOnlyThisActionId;
int __buttonAllEventsActionId;
Tizen::Ui::Control* __pTarget;
- Tizen::Social::Calendarbook __calendarbook;
+ Tizen::Social::Calendarbook* __pCalendarbook;
Tizen::Social::CalEventInstance* __pEvent;
}; // ThreeButtonPopup
private:
Tizen::Base::String __title;
Tizen::Ui::Control* __pTarget;
- Tizen::Social::Calendarbook __calendarbook;
+ Tizen::Social::Calendarbook* __pCalendarbook;
Tizen::Social::CalEventInstance* __pEvent;
}; // TwoButtonPopup
<Requirements>
<Feature Name="http://tizen.org/feature/platform.core.cpu.arch.armv7">true</Feature>
<Feature Name="http://tizen.org/feature/platform.core.fpu.arch.vfpv3">true</Feature>
+ <Feature Name="http://tizen.org/feature/screen.size.normal">true</Feature>
</Requirements>
<Apps>
<ApiVersion>2.1</ApiVersion>
<Operation>http://tizen.org/appcontrol/operation/social/view</Operation>
</AppControl>
<AppControl>
- <MimeType>text/x-vcalendar</MimeType>
<MimeType>text/calendar</MimeType>
+ <MimeType>text/x-vcalendar</MimeType>
<Operation>http://tizen.org/appcontrol/operation/view</Operation>
</AppControl>
</AppControls>
static const int H_ITEM = 110;
SharePopup::SharePopup(void)
- : __eventId(INVALID_RECORD_ID)
+ : __pCalendarbook(null)
+ , __eventId(INVALID_RECORD_ID)
{
}
result
SharePopup::Initialize(void)
{
- result r = Construct(L"IDL_SHARE_POPUP");
- if (!IsFailed(r))
- {
- __calendarbook.Construct(*this);
- }
-
- return r;
+ return Construct(L"IDL_SHARE_POPUP");
}
result
SharePopup::OnInitializing(void)
{
AppLogDebug("Enter");
+ __pCalendarbook = new (std::nothrow) Calendarbook();
+ __pCalendarbook->Construct(*this);
+
ListView* pListView = dynamic_cast<ListView*>(GetControl(L"IDC_LISTVIEW_SHARE"));
pListView->SetItemProvider(*this);
pListView->AddListViewItemEventListener(*this);
SharePopup::OnTerminating(void)
{
AppLogDebug("Enter");
+ delete __pCalendarbook;
+ __pCalendarbook = null;
return E_SUCCESS;
}
return;
}
- Calendarbook calendarbook;
- calendarbook.Construct();
- CalEvent* pEvent = calendarbook.GetEventN(__eventId);
+ CalEvent* pEvent = __pCalendarbook->GetEventN(__eventId);
if(!pEvent)
{
AppLogException("[%s] Unable to get event.(ID=%d)", GetErrorMessage(GetLastResult()), __eventId);
String* pPath = new (std::nothrow) String(CalendarApp::GetExportVcsFilePath());
LinkedList events(SingleObjectDeleter);
events.Add(pEvent);
- calendarbook.ExportEventsToVcalendar(events, *pPath);
+ __pCalendarbook->ExportEventsToVcalendar(events, *pPath);
ArrayList* pPaths = new (std::nothrow) ArrayList(SingleObjectDeleter);
pPaths->Construct(1);
ThreeButtonPopup::ThreeButtonPopup(void)
: __pTarget(null)
+ , __pCalendarbook(null)
, __pEvent(null)
{
}
result
ThreeButtonPopup::Initialize(void)
{
- result r = Construct(L"IDL_THREE_BUTTON_POPUP");
- if (!IsFailed(r))
- {
- __calendarbook.Construct(*this);
- }
-
- return r;
+ return Construct(L"IDL_THREE_BUTTON_POPUP");
}
void
result
ThreeButtonPopup::OnInitializing(void)
{
+ __pCalendarbook = new (std::nothrow) Calendarbook();
+ __pCalendarbook->Construct(*this);
+
Label* pTitle = dynamic_cast<Label*>(GetControl(L"IDC_LABEL"));
pTitle->SetText(__title);
result
ThreeButtonPopup::OnTerminating(void)
{
+ delete __pCalendarbook;
+ __pCalendarbook = null;
return E_SUCCESS;
}
TwoButtonPopup::TwoButtonPopup(void)
: __pTarget(null)
+ , __pCalendarbook(null)
, __pEvent(null)
{
}
result
TwoButtonPopup::Initialize(void)
{
- result r = Construct(L"IDL_TWO_BUTTON_POPUP");
- if (!IsFailed(r))
- {
- __calendarbook.Construct(*this);
- }
-
- return r;
+ return Construct(L"IDL_TWO_BUTTON_POPUP");
}
void
result
TwoButtonPopup::OnInitializing(void)
{
+ __pCalendarbook = new (std::nothrow) Calendarbook();
+ __pCalendarbook->Construct(*this);
+
AppLogDebug("Enter");
Label* pTitle = dynamic_cast<Label*>(GetControl(L"IDC_LABEL"));
AppAssertf(pTitle != null, "[E_FAILURE] Unable to get label.");
TwoButtonPopup::OnTerminating(void)
{
AppLogDebug("Enter");
+ delete __pCalendarbook;
+ __pCalendarbook = null;
return E_SUCCESS;
}