~ricmm/platform-api/add-location-service-api-take-2

« back to all changes in this revision

Viewing changes to src/ubuntu/mircommon/application_options_mir_priv.h

  • Committer: Thomas Voß
  • Date: 2013-07-06 06:53:05 UTC
  • Revision ID: thomas.voss@canonical.com-20130706065305-88erq3gw3bf88rnr
 * Refactored the src folder
 * Added the location service API

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2013 Canonical Ltd
 
3
 *
 
4
 * This program is free software: you can redistribute it and/or modify
 
5
 * it under the terms of the GNU Lesser General Public License version 3 as
 
6
 * published by the Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU Lesser General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 *
 
16
 * Authored by: Robert Carr <robert.carr@canonical.com>
 
17
 */
 
18
 
 
19
#ifndef UBUNTU_APPLICATION_OPTIONS_MIR_PRIV_H_
 
20
#define UBUNTU_APPLICATION_OPTIONS_MIR_PRIV_H_
 
21
 
 
22
#include <ubuntu/application/options.h>
 
23
#include <ubuntu/application/ui/options.h>
 
24
 
 
25
#include <string>
 
26
 
 
27
namespace ubuntu
 
28
{
 
29
namespace application
 
30
{
 
31
namespace mir
 
32
{
 
33
 
 
34
class Options
 
35
{
 
36
public:
 
37
    Options() = default;
 
38
    ~Options() = default;
 
39
    
 
40
    UApplicationOptions* as_u_application_options();
 
41
    static Options* from_u_application_options(UApplicationOptions* u_options);
 
42
 
 
43
    UApplicationOperationMode operation_mode = U_APPLICATION_FOREGROUND_APP;
 
44
    UAUiFormFactor form_factor = U_DESKTOP;
 
45
    UAUiStage stage = U_MAIN_STAGE;
 
46
    
 
47
    std::string desktop_file;
 
48
 
 
49
protected:
 
50
    Options(Options const&) = delete;
 
51
    Options& operator=(Options const&) = delete;
 
52
};
 
53
 
 
54
}
 
55
}
 
56
} // namespace ubuntu
 
57
 
 
58
#endif // UBUNTU_APPLICATION_OPTIONS_MIR_PRIV_H_