310 SESSIONPRINT(_L("CTranpSession::ConstructL()\n")); |
310 SESSIONPRINT(_L("CTranpSession::ConstructL()\n")); |
311 iTranpProtocol = CTranpProtocol::NewL(aNotifier); |
311 iTranpProtocol = CTranpProtocol::NewL(aNotifier); |
312 } |
312 } |
313 |
313 |
314 EXPORT_C void CTranpSession::Connect() |
314 EXPORT_C void CTranpSession::Connect() |
315 /** Establishes a connection with a peer device. This function is called before |
315 /** No Longer used. |
316 sending a picture. |
316 |
317 |
317 irda client libraries left in to avoid breaks */ |
318 The callback function Connect() is called when the connection has been successfully |
318 |
319 established. |
319 { |
320 |
|
321 @see MTranpNotification::Connected() */ |
|
322 { |
|
323 User::Leave(KErrNotSupported); //Qualified |
|
324 } |
320 } |
325 |
321 |
326 EXPORT_C void CTranpSession::Disconnect() |
322 EXPORT_C void CTranpSession::Disconnect() |
327 /** Breaks the connection with a peer device. This function is called after sending |
323 /** No Longer used. |
328 a picture. |
324 |
329 |
325 irda client libraries left in to avoid breaks */ |
330 The callback function Disconnected() is called when the connection has been |
326 |
331 broken. |
327 { |
332 |
|
333 @see MTranpNotification::Connected() */ |
|
334 { |
|
335 User::Leave(KErrNotSupported); //Qualified |
|
336 } |
328 } |
337 |
329 |
338 EXPORT_C void CTranpSession::Query(TTranP /*aWhat*/) |
330 EXPORT_C void CTranpSession::Query(TTranP /*aWhat*/) |
339 /** Requests information on the processing ability of the peer device. Typically, |
331 /** No Longer used. |
340 this is called before sending a picture to that peer device. The information |
332 |
341 is returned through the callback function QueryComplete(). |
333 irda client libraries left in to avoid breaks */ |
342 |
334 |
343 @param aWhat The specific type of information required from the peer device. |
335 { |
344 @see MTranpNotification::QueryComplete() */ |
|
345 { |
|
346 User::Leave(KErrNotSupported); //Qualified |
|
347 } |
336 } |
348 |
337 |
349 EXPORT_C void CTranpSession::Abort() |
338 EXPORT_C void CTranpSession::Abort() |
350 /** Aborts any transmission in progress. */ |
339 /** Aborts any transmission in progress. */ |
351 { |
340 { |
381 { |
370 { |
382 iTranpProtocol->Get(aPicture); |
371 iTranpProtocol->Get(aPicture); |
383 } |
372 } |
384 |
373 |
385 EXPORT_C void CTranpSession::Put(const TTranpPicture& /*aPicture*/) |
374 EXPORT_C void CTranpSession::Put(const TTranpPicture& /*aPicture*/) |
386 /** Sends a picture to a peer device. |
375 /** No Longer used. |
387 |
376 |
388 The following sequence of events is expected: |
377 irda client libraries left in to avoid breaks */ |
389 |
378 { |
390 This device sends picture data to the peer device, resulting in successive |
|
391 calls to the ProgressIndication() callback function indicating how much of |
|
392 the picture data has been received. |
|
393 |
|
394 Transmission of picture data is complete, resulting in a call to the GetComplete() |
|
395 callback function. |
|
396 |
|
397 If the connection with the peer device is dropped at any stage in the transmission, |
|
398 then this results in a call to the Error() callback function. |
|
399 |
|
400 @param aPicture The picture object |
|
401 @see MTranpNotification::ProgressIndication() |
|
402 @see MTranpNotification::GetComplete() |
|
403 @see MTranpNotification::Error() */ |
|
404 { |
|
405 User::Leave(KErrNotSupported); //Qualified |
|
406 } |
379 } |
407 |
380 |
408 EXPORT_C void CTranpSession::Config(const TTranpConfig& /*aConfig*/) |
381 EXPORT_C void CTranpSession::Config(const TTranpConfig& /*aConfig*/) |
409 /** Sets the configuration parameters. |
382 /** No Longer used. |
410 |
383 |
411 @param aConfig The configuration parameters */ |
384 irda client libraries left in to avoid breaks */ |
412 { |
385 { |
413 User::Leave(KErrNotSupported); //Qualified |
|
414 } |
386 } |
415 |
387 |
416 EXPORT_C TTranpConfig CTranpSession::Config() const |
388 EXPORT_C TTranpConfig CTranpSession::Config() const |
417 |
389 |
418 /** Returns the configuration parameters. |
390 /** No Longer used. |
419 |
391 |
420 @return The configuration parameters. */ |
392 irda client libraries left in to avoid breaks */ |
421 { |
393 { |
422 User::Leave(KErrNotSupported); //Qualified |
|
423 return iConfig; |
394 return iConfig; |
424 } |
395 } |
425 |
396 |
426 |
397 |