Dali 3D User Interface Engine
toolkit-application.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 
18 #include "toolkit-application.h"
19 
22 #include <dali/devel-api/adaptor-framework/orientation.h>
23 
24 namespace Dali
25 {
26 
28 
29 
33 class Application
34 {
35 public:
36 
37 public:
38 
39  Application(ToolkitApplication& toolkitApplication);
40  ~Application();
41 
42 public:
43 
44  //Orientation& GetOrientation();
45 
46 public: // static methods
47 
48 public: // Signals
49 
50 private:
51 
52  // Undefined
53  Application(const Application&);
55 
57 
58  //Dali::Orientation* mOrientation;
59 };
60 
61 namespace
62 {
64 }
65 
67 : mToolkitApplication(toolkitApplication)
68 // ,mOrientation( new Dali::Orientation() )
69 {
70 }
71 
73 {
74  //delete mOrientation;
75 }
76 
77 //Orientation& Application::GetOrientation()
78 //{
79 // return *mOrientation;
80 //}
81 
83 
85 : mApplicationStub(new Application(*this))
86 {
88 }
89 
91 {
92  delete mApplicationStub;
93  gApplication = NULL;
94 }
95 
97 {
99  return *gApplication;
100 }
101 
102 } // namespace Dali
Dali Docs Home
Read more about Dali