~ubuntu-branches/ubuntu/natty/kdemultimedia/natty-proposed

« back to all changes in this revision

Viewing changes to libkcddb/cddbplookup.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Debian Qt/KDE Maintainers
  • Date: 2011-05-26 02:41:36 UTC
  • mfrom: (0.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 108.
  • Revision ID: james.westby@ubuntu.com-20110526024136-jjwsigfy402jhupm
Tags: upstream-4.6.3
ImportĀ upstreamĀ versionĀ 4.6.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    void
42
42
  CDDBPLookup::sendHandshake()
43
43
  {
44
 
    QString handshake = QString( "cddb hello %1 %2 %3 %4" )
 
44
      QString handshake = QString::fromLatin1( "cddb hello %1 %2 %3 %4" )
45
45
        .arg( user_ )
46
46
        .arg( localHostName_ )
47
47
        .arg( clientName() )
53
53
    void
54
54
  CDDBPLookup::sendProto()
55
55
  {
56
 
    writeLine( "proto 6" );
 
56
    writeLine( QLatin1String( "proto 6" ) );
57
57
  }
58
58
 
59
59
    void
60
60
  CDDBPLookup::sendQuery()
61
61
  {
62
 
    QString query = QString( "cddb query %1 %2" )
 
62
      QString query = QString::fromLatin1( "cddb query %1 %2" )
63
63
        .arg( trackOffsetListToId() )
64
64
        .arg( trackOffsetListToString() );
65
65
 
72
72
    category_  = match.first;
73
73
    discid_    = match.second;
74
74
 
75
 
    QString readRequest = QString( "cddb read %1 %2" )
 
75
    QString readRequest = QString::fromLatin1( "cddb read %1 %2" )
76
76
        .arg( category_ )
77
77
        .arg( discid_ );
78
78
 
82
82
    void
83
83
  CDDBPLookup::sendQuit()
84
84
  {
85
 
    writeLine( "quit" );
 
85
    writeLine( QLatin1String( "quit" ) );
86
86
  }
87
87
 
88
88
    void
135
135
  }
136
136
 
137
137
 
138
 
    Q_LONG
 
138
    qint64
139
139
  CDDBPLookup::writeLine( const QString & line )
140
140
  {
141
141
    if ( !isConnected() )