~ubuntu-branches/ubuntu/wily/psi/wily

« back to all changes in this revision

Viewing changes to iris/src/xmpp/xmpp-im/client.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2010-02-19 09:37:12 UTC
  • mfrom: (6.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100219093712-e225xvm1wjcf1cgi
Tags: 0.14-2
* comment out only function which uses va_list to work around build
  problems on armel
* Set Standards-Version to 3.8.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
        Features features;
134
134
        QMap<QString,Features> extension_features;
135
135
        int tzoffset;
 
136
        bool useTzoffset;       // manual tzoffset is old way of doing utc<->local translations
136
137
        bool active;
137
138
 
138
139
        LiveRoster roster;
150
151
{
151
152
        d = new ClientPrivate;
152
153
        d->tzoffset = 0;
 
154
        d->useTzoffset = false;
153
155
        d->active = false;
154
156
        d->osname = "N/A";
155
157
        d->clientName = "N/A";
992
994
        return d->tzoffset;
993
995
}
994
996
 
 
997
/**
 
998
  \brief Returns true if Client is using old, manual time zone conversions.
 
999
 
 
1000
  By default, conversions between UTC and local time are done automatically by Qt.
 
1001
  In this mode, manualTimeZoneOffset() returns true,
 
1002
  and timeZoneOffset() always retuns 0 (so you shouldn't use that function).
 
1003
 
 
1004
  However, if you call setTimeZone(), Client instance switches to old mode
 
1005
  and uses given time zone offset for all calculations.
 
1006
  */
 
1007
bool Client::manualTimeZoneOffset() const
 
1008
{
 
1009
        return d->useTzoffset;
 
1010
}
 
1011
 
995
1012
QString Client::clientName() const
996
1013
{
997
1014
        return d->clientName;
1026
1043
{
1027
1044
        d->tzname = name;
1028
1045
        d->tzoffset = offset;
 
1046
        d->useTzoffset = true;
1029
1047
}
1030
1048
 
1031
1049
void Client::setClientName(const QString &s)