~ubuntu-branches/debian/stretch/psi-plus/stretch

« back to all changes in this revision

Viewing changes to src/conferencebookmark.cpp

  • Committer: Package Import Robot
  • Author(s): Boris Pek
  • Date: 2013-10-23 02:42:20 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20131023024220-bk2hyoenqkwfhpgw
Tags: 0.16.242-1
* New upstream release:
  fixed the problem of initialization of private conversation when both
  sides use libotr 4.0.x. (Closes: #724880)
* Update debian/watch: sources were moved.
* Delete psi-plus-content-downloader package and update all related files.
  This plugin is in psi-plus-plugins package now.
* Update debian/control:
  - remove all currently unneeded Replaces and Breaks fields
  - add build dependency on libidn11-dev
* Update debian/rules: simplify get-orig-source section.
* Update debian/copyright:
  - update Source field due to changes in sources location
  - remove copyright holders whose code was deleted from source tree
    (bundled libidn library was removed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include "xmpp_xmlcommon.h"
26
26
 
27
27
ConferenceBookmark::ConferenceBookmark(const QString& name, const XMPP::Jid& jid, bool auto_join, const QString& nick, const QString& password) : name_(name), jid_(jid), auto_join_(auto_join), nick_(nick), password_(password)
28
 
 
28
{
29
29
}
30
30
 
31
31
ConferenceBookmark::ConferenceBookmark(const QDomElement& el) : auto_join_(false)
33
33
        fromXml(el);
34
34
}
35
35
 
36
 
const QString& ConferenceBookmark::name() const 
37
 
38
 
        return name_; 
39
 
}
40
 
 
41
 
const XMPP::Jid& ConferenceBookmark::jid() const 
42
 
43
 
        return jid_; 
44
 
}
45
 
 
46
 
bool ConferenceBookmark::autoJoin() const 
47
 
48
 
        return auto_join_; 
49
 
}
50
 
 
51
 
const QString& ConferenceBookmark::nick() const 
52
 
53
 
        return nick_; 
54
 
}
55
 
 
56
 
const QString& ConferenceBookmark::password() const 
57
 
58
 
        return password_; 
 
36
const QString& ConferenceBookmark::name() const
 
37
{
 
38
        return name_;
 
39
}
 
40
 
 
41
const XMPP::Jid& ConferenceBookmark::jid() const
 
42
{
 
43
        return jid_;
 
44
}
 
45
 
 
46
bool ConferenceBookmark::autoJoin() const
 
47
{
 
48
        return auto_join_;
 
49
}
 
50
 
 
51
const QString& ConferenceBookmark::nick() const
 
52
{
 
53
        return nick_;
 
54
}
 
55
 
 
56
const QString& ConferenceBookmark::password() const
 
57
{
 
58
        return password_;
59
59
}
60
60
 
61
61
bool ConferenceBookmark::isNull() const
69
69
        name_ = e.attribute("name");
70
70
        if (e.attribute("autojoin") == "true" || e.attribute("autojoin") == "1")
71
71
                auto_join_ = true;
72
 
        
 
72
 
73
73
        for (QDomNode n = e.firstChild(); !n.isNull(); n = n.nextSibling()) {
74
74
                QDomElement i = n.toElement();
75
75
                if (i.isNull())
88
88
        QDomElement e = doc.createElement("conference");
89
89
        e.setAttribute("jid",jid_.full());
90
90
        e.setAttribute("name",name_);
91
 
        if (auto_join_) 
 
91
        if (auto_join_)
92
92
                e.setAttribute("autojoin","true");
93
93
        if (!nick_.isEmpty())
94
94
                e.appendChild(textTag(&doc,"nick",nick_));