~ubuntu-branches/ubuntu/raring/kdepimlibs/raring-proposed

« back to all changes in this revision

Viewing changes to syndication/rss2/cloud.cpp

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-07-08 00:32:40 UTC
  • mto: (0.5.5 experimental) (1.1.93)
  • mto: This revision was merged to the branch mainline in revision 100.
  • Revision ID: package-import@ubuntu.com-20110708003240-no12z37io7q5nxwt
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
QString Cloud::domain() const
40
40
{
41
 
    return attribute(QString::fromUtf8("domain"));
 
41
    return attribute(QLatin1String("domain"));
42
42
}
43
43
 
44
44
int Cloud::port() const
45
45
{
46
 
    if (hasAttribute(QString::fromUtf8("port")))
 
46
    if (hasAttribute(QLatin1String("port")))
47
47
    {
48
48
        bool ok;
49
 
        int c = attribute(QString::fromUtf8("port")).toInt(&ok);
 
49
        int c = attribute(QLatin1String("port")).toInt(&ok);
50
50
        return ok ? c : -1;
51
51
    }
52
52
    
55
55
 
56
56
QString Cloud::path() const
57
57
{
58
 
    return attribute(QString::fromUtf8("path"));
 
58
    return attribute(QLatin1String("path"));
59
59
}
60
60
 
61
61
QString Cloud::registerProcedure() const
62
62
{
63
 
    return attribute(QString::fromUtf8("registerProcedure"));
 
63
    return attribute(QLatin1String("registerProcedure"));
64
64
}
65
65
 
66
66
QString Cloud::protocol() const
67
67
{
68
68
    
69
 
    return attribute(QString::fromUtf8("protocol"));
 
69
    return attribute(QLatin1String("protocol"));
70
70
}
71
71
 
72
72
QString Cloud::debugInfo() const
73
73
{
74
74
    QString info;
75
 
    info += "### Cloud: ###################\n";
 
75
    info += QLatin1String("### Cloud: ###################\n");
76
76
    if (!domain().isNull())
77
 
        info += "domain: #" + domain() + "#\n";
 
77
        info += QLatin1String("domain: #") + domain() + QLatin1String("#\n");
78
78
    if (port() != -1)
79
 
        info += "port: #" + QString::number(port()) + "#\n";
 
79
        info += QLatin1String("port: #") + QString::number(port()) + QLatin1String("#\n");
80
80
    if (!path().isNull())
81
 
        info += "path: #" + path() + "#\n";
 
81
        info += QLatin1String("path: #") + path() + QLatin1String("#\n");
82
82
    if (!registerProcedure().isNull())
83
 
        info += "registerProcedure: #" + registerProcedure() + "#\n";
 
83
        info += QLatin1String("registerProcedure: #") + registerProcedure() + QLatin1String("#\n");
84
84
    if (!protocol().isNull())
85
 
        info += "protocol: #" + protocol() + "#\n";
86
 
    info += "### Cloud end ################\n";
 
85
        info += QLatin1String("protocol: #") + protocol() + QLatin1String("#\n");
 
86
    info += QLatin1String("### Cloud end ################\n");
87
87
    return info;
88
88
}
89
89