bug fix: TIVI-1997, TIVI-2161, An action is inaccurate when the menu of HomeScreen...
[profile/ivi/ico-uxf-homescreen.git] / src / homescreen / CicoHSCmdOpts.h
1 /*
2  * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
3  *
4  * This program is licensed under the terms and conditions of the
5  * Apache License, version 2.0.  The full text of the Apache License is at
6  * http://www.apache.org/licenses/LICENSE-2.0
7  *
8  */
9
10 //==========================================================================
11 /**
12  *  @file   CicoHSCmdOpts.h
13  *
14  *  @brief  This file is definition of CicoHSCmdOpts class
15  */
16 //==========================================================================
17 #ifndef __CICO_HS_CMD_OPTS_H__
18 #define __CICO_HS_CMD_OPTS_H__
19
20 #include <string>
21
22 //==========================================================================
23 /**
24  *  @brief  This class hold command options
25  */
26 //==========================================================================
27 class CicoHSCmdOpts
28 {
29 public:
30     // get this class instance
31     static CicoHSCmdOpts* getInstance(void);
32
33     // perse command options
34     void parse(int argc, char *argv[]);
35
36     // get login user name
37     const std::string & getLoginUser(void);
38
39     // get application history file path
40     const std::string & getHistoryFilePath(void);
41
42     /// get application default history file path
43     const std::string & getDefaultHistoryFilePath(void);
44
45     /// get application history file flag
46     const std::string & getFlagPath(void);
47
48 private:
49     // default constructor
50     CicoHSCmdOpts();
51
52     // destructor
53     ~CicoHSCmdOpts();
54
55     /// assignment operator
56     CicoHSCmdOpts& operator=(const CicoHSCmdOpts &object);
57
58     /// copy constructor
59     CicoHSCmdOpts(const CicoHSCmdOpts &object);
60
61 public:
62     /// this class instance
63     static CicoHSCmdOpts* ms_myInstance;
64
65     /// login user name
66     std::string m_loginUser;
67     /// application history file path
68     std::string m_historyFilePath;
69     /// application default history file path
70     std::string m_defaultHistoryFilePath;
71     /// application history file flag
72     std::string m_flagPath;
73 };
74 #endif  // __CICO_HS_CMD_OPTS_H__
75 // vim:set expandtab ts=4 sw=4: