×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Dec 2006
    Posts
    161

    Delete file when i receive a certain file through bluetooth

    Guys,

    Just want to ask how to delete the file that i receive using bluetooth...

    for example... somebody send me a file name MyApp.sis... then automatically I will delete that file coz I don't want it... Can you guide me on how to do this...Thanks

  2. #2
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: Delete file when i receive a certain file through bluetooth

    Quote Originally Posted by xersmith
    Guys,

    Just want to ask how to delete the file that i receive using bluetooth...

    for example... somebody send me a file name MyApp.sis... then automatically I will delete that file coz I don't want it... Can you guide me on how to do this...Thanks
    Hi xersmith,

    Through MTM you can delete bluetooth sent file....

    first you can get notification change in inbox by

    HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1,TAny* aArg2, TAny* /*aArg3*/) this function...

    and whenever you got any change in inbox then you compare
    create object of this class CMsvEntry.......and then compare
    iMsvEntry->Entry().iMtm == KUidMsgTypeBT
    msgs.lib // main messaging library
    #include <btmsgtypeuid.h> // Series60
    TUid::Uid(KUidMsgTypeBT)
    Then
    iMsvEntry->DeleteL(//new entry id);

    I'hope It'll help you..

  3. #3
    Nokia Developer Champion
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,545

    Re: Delete file when i receive a certain file through bluetooth

    Or, you can of course just refuse the (unsolicited) Bluetooth connection alltogether before the file ends up in the Inbox in the first place.

    Or, you can keep your phone's Bluetooth in the hidden state, so that arbitrary people are unable to detect it.

    Or, you can keep Bluetooth turned off entirely until/unless you really need it.

    I see those as better, preventive solutions than to try to fix an issue after-the-fact. Much easier, too (no software to write, test and install, and the effort can be used for creating something more useful, IMO).

Similar Threads

  1. File transfe over Bluetooth using RFCOMM
    By mai.cervantes in forum Mobile Java Networking & Messaging & Security
    Replies: 7
    Last Post: 2007-11-02, 20:11
  2. DRM for sending jar file via Bluetooth
    By yogesh.bhople in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 0
    Last Post: 2007-03-15, 12:14
  3. Replies: 1
    Last Post: 2005-05-26, 14:22
  4. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29
  5. Replies: 0
    Last Post: 2002-06-10, 12:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •