X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fadaptor-framework%2Fapplication-devel.cpp;h=792bc36aac92740b9a036607e3db1c138aa328e0;hb=f32f04052accfe880a9141d554091d4cfe922d47;hp=927076145986f101c45cf3615b7b75754c6f5383;hpb=398db97500b00d1a7efdbbbc69eb60956b88b038;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/devel-api/adaptor-framework/application-devel.cpp b/dali/devel-api/adaptor-framework/application-devel.cpp index 9270761..792bc36 100644 --- a/dali/devel-api/adaptor-framework/application-devel.cpp +++ b/dali/devel-api/adaptor-framework/application-devel.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,14 +22,11 @@ namespace Dali { - namespace DevelApplication { - - -bool AddIdleWithReturnValue( Application application, CallbackBase* callback ) +bool AddIdleWithReturnValue(Application application, CallbackBase* callback) { - return Internal::Adaptor::GetImplementation( application ).AddIdle( callback, true ); + return Internal::Adaptor::GetImplementation(application).AddIdle(callback, true); } std::string GetDataPath() @@ -37,13 +34,16 @@ std::string GetDataPath() return Internal::Adaptor::Application::GetDataPath(); } +Application DownCast(Dali::RefObject* refObject) +{ + return Application(dynamic_cast(refObject)); +} + } // namespace DevelApplication } // namespace Dali -extern "C" -void PreInitialize( int* argc, char** argv[] ) +extern "C" void ApplicationPreInitialize(int* argc, char** argv[]) { - Dali::Internal::Adaptor::Application::PreInitialize( argc, argv ); + Dali::Internal::Adaptor::Application::PreInitialize(argc, argv); } -