summaryrefslogtreecommitdiff
path: root/noncore/graphics/opie-eye/slave/slavereciever.cpp
authoralwin <alwin>2004-11-10 23:41:17 (UTC)
committer alwin <alwin>2004-11-10 23:41:17 (UTC)
commita57e46d9b290712fa1ff106a1be133f4f9751a96 (patch) (unidiff)
treef590e58a0fd1adf01522f596e02ff99eef69e9fe /noncore/graphics/opie-eye/slave/slavereciever.cpp
parent660b61a7f8b9fb885226507d7f6716ab2dcedbb8 (diff)
downloadopie-a57e46d9b290712fa1ff106a1be133f4f9751a96.zip
opie-a57e46d9b290712fa1ff106a1be133f4f9751a96.tar.gz
opie-a57e46d9b290712fa1ff106a1be133f4f9751a96.tar.bz2
removed a lot of debug messages
Diffstat (limited to 'noncore/graphics/opie-eye/slave/slavereciever.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/slave/slavereciever.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/noncore/graphics/opie-eye/slave/slavereciever.cpp b/noncore/graphics/opie-eye/slave/slavereciever.cpp
index 941a5df..3b11c04 100644
--- a/noncore/graphics/opie-eye/slave/slavereciever.cpp
+++ b/noncore/graphics/opie-eye/slave/slavereciever.cpp
@@ -41,7 +41,6 @@ QDataStream &operator<<( QDataStream& s, const PixmapInfo& inf) {
41 */ 41 */
42QDataStream &operator>>( QDataStream& s, PixmapInfo& inf ) { 42QDataStream &operator>>( QDataStream& s, PixmapInfo& inf ) {
43 s >> inf.file >> inf.width >> inf.height; 43 s >> inf.file >> inf.width >> inf.height;
44 owarn << "Recieved " << inf.file.latin1() << " " << inf.width << " " << inf.height << "" << oendl;
45 return s; 44 return s;
46} 45}
47QDataStream &operator<<( QDataStream& s, const ImageInfo& i) { 46QDataStream &operator<<( QDataStream& s, const ImageInfo& i) {
@@ -86,7 +85,6 @@ SlaveReciever::~SlaveReciever() {
86} 85}
87 86
88void SlaveReciever::recieveAnswer( const QCString& string, const QByteArray& ar) { 87void SlaveReciever::recieveAnswer( const QCString& string, const QByteArray& ar) {
89 owarn << "String is " << string.data() << "" << oendl;
90 QDataStream stream(ar, IO_ReadOnly ); 88 QDataStream stream(ar, IO_ReadOnly );
91 QStringList lst; 89 QStringList lst;
92 static ImageInfo inf; 90 static ImageInfo inf;
@@ -99,7 +97,6 @@ void SlaveReciever::recieveAnswer( const QCString& string, const QByteArray& ar)
99 }else if ( string == "thumbInfos(QStringList)" ) { 97 }else if ( string == "thumbInfos(QStringList)" ) {
100 stream >> lst; 98 stream >> lst;
101 for(QStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) { 99 for(QStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) {
102 owarn << "Adding thumbinfo for file "+ *it << oendl;
103 inf.file = (*it); 100 inf.file = (*it);
104 inf.kind = false; 101 inf.kind = false;
105 m_inList.append(inf); 102 m_inList.append(inf);
@@ -111,7 +108,6 @@ void SlaveReciever::recieveAnswer( const QCString& string, const QByteArray& ar)
111 }else if ( string == "fullInfos(QStringList)" ) { 108 }else if ( string == "fullInfos(QStringList)" ) {
112 stream >> lst; 109 stream >> lst;
113 for(QStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) { 110 for(QStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) {
114 owarn << "Adding fullInfo for"+ *it << oendl;
115 inf.file = (*it); 111 inf.file = (*it);
116 inf.kind = true; 112 inf.kind = true;
117 m_inList.append(inf); 113 m_inList.append(inf);
@@ -123,7 +119,6 @@ void SlaveReciever::recieveAnswer( const QCString& string, const QByteArray& ar)
123 PixmapList list; 119 PixmapList list;
124 stream >> list; 120 stream >> list;
125 for(PixmapList::Iterator it = list.begin(); it != list.end(); ++it ) { 121 for(PixmapList::Iterator it = list.begin(); it != list.end(); ++it ) {
126 owarn << "Got " << (*it).width << " " << (*it).height << " " + (*it).file << oendl;
127 m_inPix.append(*it); 122 m_inPix.append(*it);
128 } 123 }
129 }else if ( string == "refUp()" ) { 124 }else if ( string == "refUp()" ) {
@@ -187,7 +182,6 @@ void SlaveReciever::slotThumbNail() {
187 SlaveInterface* iface = it.data(); 182 SlaveInterface* iface = it.data();
188 if( iface->supports(inf.file ) ) { 183 if( iface->supports(inf.file ) ) {
189 /* pixmap */ 184 /* pixmap */
190 owarn << "Asking for thumbNail in size " << inf.width << " " << inf.height << " for "+inf.file << oendl;
191 if (inf.width>256||inf.height>256) { 185 if (inf.width>256||inf.height>256) {
192 owarn << "Scaling thumbnail to 64x64 'cause " << inf.width<<"x"<<inf.height<< 186 owarn << "Scaling thumbnail to 64x64 'cause " << inf.width<<"x"<<inf.height<<
193 " may be nonsense"; 187 " may be nonsense";
@@ -212,7 +206,6 @@ void SlaveReciever::slotSend() {
212 206
213 m_out->stop(); 207 m_out->stop();
214 208
215 owarn << "Sending " << outPix().count() << " " << outInf().count() << "" << oendl;
216 /* queue it and send */ 209 /* queue it and send */
217 /* if this ever gets a service introduce request queues 210 /* if this ever gets a service introduce request queues
218 * so we can differinatate between different clients 211 * so we can differinatate between different clients
@@ -220,16 +213,20 @@ void SlaveReciever::slotSend() {
220 if (! m_outPix.isEmpty() ) { 213 if (! m_outPix.isEmpty() ) {
221 QCopEnvelope answer("QPE/opie-eye", "pixmapsHandled(PixmapList)" ); 214 QCopEnvelope answer("QPE/opie-eye", "pixmapsHandled(PixmapList)" );
222 answer << outPix(); 215 answer << outPix();
216#if 0
223 for ( PixmapList::Iterator it = m_outPix.begin();it!=m_outPix.end();++it ) { 217 for ( PixmapList::Iterator it = m_outPix.begin();it!=m_outPix.end();++it ) {
224 owarn << "Sending out " << (*it).file.latin1() << " " << (*it).width << " " << (*it).height << "" << oendl; 218 owarn << "Sending out " << (*it).file.latin1() << " " << (*it).width << " " << (*it).height << "" << oendl;
225 } 219 }
220#endif
226 } 221 }
227 if ( !m_outList.isEmpty() ) { 222 if ( !m_outList.isEmpty() ) {
228 QCopEnvelope answer("QPE/opie-eye", "pixmapsHandled(StringList)" ); 223 QCopEnvelope answer("QPE/opie-eye", "pixmapsHandled(StringList)" );
229 answer << outInf(); 224 answer << outInf();
225#if 0
230 for ( StringList::Iterator it = m_outList.begin();it!=m_outList.end();++it ) { 226 for ( StringList::Iterator it = m_outList.begin();it!=m_outList.end();++it ) {
231 owarn << "Sending out2 " + (*it).file << oendl; 227 owarn << "Sending out2 " + (*it).file << oendl;
232 } 228 }
229#endif
233 } 230 }
234 231
235 m_outList.clear(); 232 m_outList.clear();