librime: rime::Session Class Reference

| librime 1.2 Rime Input Method Engine, the core library

Public Member Functions | Static Public Attributes | List of all members
rime::Session Class Reference

`#include <service.h>`

## Public Member Functions
| Session ()
bool | ProcessKey (const KeyEvent &key_event)
void | Activate ()
void | ResetCommitText ()
bool | CommitComposition ()
void | ClearComposition ()
void | ApplySchema (Schema *schema)
Context * | context () const
Schema * | schema () const
time_t | last_active_time () const
const string & | commit_text () const

## Static Public Attributes
static const int | kLifeSpan = 5 * 60

## Constructor & Destructor Documentation

## ◆ Session()

rime::Session::Session | ( |  | ) |

## Member Function Documentation

## ◆ Activate()

void rime::Session::Activate | ( |  | ) |

## ◆ ApplySchema()

void rime::Session::ApplySchema | ( | Schema * | schema | ) |

## ◆ ClearComposition()

void rime::Session::ClearComposition | ( |  | ) |

## ◆ commit_text()

const string & rime::Session::commit_text | ( |  | ) | const
| inline

## ◆ CommitComposition()

bool rime::Session::CommitComposition | ( |  | ) |

## ◆ context()

Context * rime::Session::context | ( |  | ) | const

## ◆ last_active_time()

time_t rime::Session::last_active_time | ( |  | ) | const
| inline

## ◆ ProcessKey()

bool rime::Session::ProcessKey | ( | const KeyEvent & | key_event | ) |

## ◆ ResetCommitText()

void rime::Session::ResetCommitText | ( |  | ) |

## ◆ schema()

Schema * rime::Session::schema | ( |  | ) | const

## Member Data Documentation

## ◆ kLifeSpan

const int rime::Session::kLifeSpan = 5 * 60
| static

The documentation for this class was generated from the following files:

- service.h
- service.cc