~lidaobing/ibus/ibus-qt

« back to all changes in this revision

Viewing changes to src/qibuslookuptable.cpp

  • Committer: LI Daobing
  • Date: 2009-07-28 14:30:44 UTC
  • Revision ID: lidaobing@gmail.com-20090728143044-2swzp2fwuu7p8xae
importĀ 1.2.0.20090728

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "qibuslookuptable.h"
 
2
 
 
3
namespace IBus {
 
4
 
 
5
IBUS_DECLARE_SERIALIZABLE(LookupTable, IBusLookupTable);
 
6
 
 
7
bool
 
8
LookupTable::serialize (QDBusArgument &argument) const
 
9
{
 
10
    if (!Serializable::serialize (argument))
 
11
        return false;
 
12
    argument << m_text;
 
13
    return true;
 
14
}
 
15
 
 
16
bool
 
17
LookupTable::deserialize (const QDBusArgument &argument)
 
18
{
 
19
    if (!Serializable::deserialize (argument))
 
20
        return false;
 
21
    argument >> m_text;
 
22
    return true;
 
23
}
 
24
 
 
25
};