#include <string>
#include <vector>
#include <msp/strings/lexicalcast.h>
-#include "attributes.h"
#include "noncopyable.h"
namespace Msp {
GetOpt();
~GetOpt();
- /** Returns any non-option arguments encountered during processing.
- Deprecated; use add_argument instead. */
- DEPRECATED const std::vector<std::string> &get_args() const { return args_raw; }
-
/** Adds an option with both short and long forms. Processing depends on
the type of the destination variable and whether an argument is taken or
not. With an argument, the value is lexical_cast to the appropriate type
return "/sdcard";
}
-Path get_user_data_dir(const string &)
-{
- return get_user_data_dir();
-}
-
Path get_user_data_dir()
{
Android::MainThread *thread = reinterpret_cast<Android::MainThread *>(Application::get_data());
return result;
}
-Path get_sys_conf_dir(const string &)
-{
- return get_sys_conf_dir();
-}
-
Path get_sys_conf_dir()
{
const char *argv0 = Application::get_argv0();
return dir;
}
-Path get_sys_data_dir(const string &, const string &)
-{
- return get_sys_data_dir();
-}
-
Path get_sys_data_dir()
{
const char *argv0 = Application::get_argv0();
return dir;
}
-Path get_sys_lib_dir(const string &, const string &)
-{
- return get_sys_lib_dir();
-}
-
Path get_sys_lib_dir()
{
const char *argv0 = Application::get_argv0();
#include <list>
#include <stdexcept>
#include <string>
-#include <msp/core/attributes.h>
#include "path.h"
namespace Msp {
/// Returns the user's home directory
Path get_home_dir();
-/// Deprecated. Use the argument-less version instead.
-DEPRECATED Path get_user_data_dir(const std::string &appname);
-
/// Returns a directory suitable for storing user-specific data.
Path get_user_data_dir();
-/// Deprecated. Use the argument-less version instead.
-DEPRECATED Path get_sys_conf_dir(const std::string &argv0);
-
/// Returns a directory containing system-wide configuration.
Path get_sys_conf_dir();
-/// Deprecated. Use the argument-less version instead.
-DEPRECATED Path get_sys_data_dir(const std::string &argv0, const std::string &appname);
-
/// Returns a directory containing immutable system-wide data.
Path get_sys_data_dir();
-/// Deprecated. Use the argument-less version instead.
-DEPRECATED Path get_sys_lib_dir(const std::string &argv0, const std::string &appname);
-
/// Returns a directory containing system-wide architecture-specific files.
Path get_sys_lib_dir();
return ".";
}
-Path get_user_data_dir(const string &)
-{
- return get_user_data_dir();
-}
-
Path get_user_data_dir()
{
const string &appname = Application::get_name();
return ".";
}
-Path get_user_data_dir(const string &)
-{
- return get_user_data_dir();
-}
-
Path get_user_data_dir()
{
const string &appname = Application::get_name();
return ".";
}
-Path get_user_data_dir(const string &)
-{
- return get_user_data_dir();
-}
-
Path get_user_data_dir()
{
const string &appname = Application::get_name();
#include <map>
#include <vector>
-#include <msp/core/attributes.h>
#include <msp/core/noncopyable.h>
#include <msp/time/timedelta.h>
PolledObject(EventObject *o, PollEvent e): object(o), events(e) { }
};
- typedef PolledObject Slot DEPRECATED;
-
- typedef std::vector<PolledObject> SlotList DEPRECATED;
private:
struct Private;
}
}
-void Timer::tick(bool block)
-{
- if(block)
- tick();
- else
- tick(zero);
-}
-
void Timer::tick()
{
do_tick(-sec);
#include <vector>
#include <sigc++/sigc++.h>
-#include <msp/core/attributes.h>
#include <msp/core/mutex.h>
#include <msp/core/noncopyable.h>
#include <msp/core/semaphore.h>
/** Cancels a previously added timer. */
void cancel(Slot &);
- /** Deprecated. Use one of the other overloads. */
- DEPRECATED void tick(bool block);
-
/** Waits until a timer expires, then executes it. If no timers have been
set, blocks until one is added from another thread. */
void tick();
+++ /dev/null
-#ifndef MSP_TIME_UNITS_H_
-#define MSP_TIME_UNITS_H_
-
-#include "timedelta.h"
-
-// This header is deprecated
-#error "Time units are in timedelta.h"
-
-#endif