aboutsummaryrefslogtreecommitdiff
path: root/include/datetime/formatter.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-01-30 18:33:14 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-01-30 18:33:14 -0600
commita7a09a5ca5012fb1c48f259d2587542316e7349b (patch)
treee6ac38cfefcbb049e4f77c1d546abc806e0389c9 /include/datetime/formatter.h
parent8564861a5026561d94310cd60ed77e3986f64246 (diff)
downloadayatana-indicator-datetime-a7a09a5ca5012fb1c48f259d2587542316e7349b.tar.gz
ayatana-indicator-datetime-a7a09a5ca5012fb1c48f259d2587542316e7349b.tar.bz2
ayatana-indicator-datetime-a7a09a5ca5012fb1c48f259d2587542316e7349b.zip
copyediting: as per review, use name_of_thing() instead of get_name_of_thing() or getNameOfThing()
Diffstat (limited to 'include/datetime/formatter.h')
-rw-r--r--include/datetime/formatter.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/datetime/formatter.h b/include/datetime/formatter.h
index f323858..0d695e2 100644
--- a/include/datetime/formatter.h
+++ b/include/datetime/formatter.h
@@ -69,27 +69,27 @@ class Formatter
public:
/** \brief The time format string for the menu header */
- core::Property<std::string> headerFormat;
+ core::Property<std::string> header_format;
- /** \brief The time string for the menu header. (eg, the headerFormat + the clock's time */
+ /** \brief The time string for the menu header. (eg, the header_format + the clock's time */
core::Property<std::string> header;
/** \brief Signal to denote when the relativeFormat has changed.
When this is emitted, clients will want to rebuild their
menuitems that contain relative time strings
(ie, the Appointments and Locations menuitems) */
- core::Signal<> relativeFormatChanged;
+ core::Signal<> relative_format_changed;
/** \brief Generate a relative time format for some time (or time range)
from the current clock's value. For example, a full-day interval
starting at the end of the current clock's day yields "Tomorrow" */
- std::string getRelativeFormat(GDateTime* then, GDateTime* then_end=nullptr) const;
+ std::string relative_format(GDateTime* then, GDateTime* then_end=nullptr) const;
protected:
Formatter(const std::shared_ptr<const Clock>&);
virtual ~Formatter();
- static const char* getDefaultHeaderTimeFormat(bool twelvehour, bool show_seconds);
+ static const char* default_header_time_format(bool twelvehour, bool show_seconds);
private:
@@ -127,7 +127,7 @@ class PhoneFormatter: public Formatter
{
public:
PhoneFormatter(const std::shared_ptr<const Clock>& clock): Formatter(clock) {
- headerFormat.set(getDefaultHeaderTimeFormat(is_locale_12h(), false));
+ header_format.set(default_header_time_format(is_locale_12h(), false));
}
};