×

Discussion Board

Results 1 to 5 of 5

Thread: Receiving MMS

  1. #1
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    128

    Receiving MMS

    Hello,
    I want to store The attachement data (like image) received from a new MMS.
    I implement fuction that observe a new MMS event.
    How can i detach the image and store it in memory??

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,699

    Re: Receiving MMS

    MMsvSessionObserver::HandleSessionEventL notifies you when something happens in the Message Server.
    When receiving something, you will get an EMsvEntriesCreated event in the Inbox, then one or more EMsvEntriesChanged events for the freshly created message.
    When the message is ready for reading, TMsvEntry::Complete will return ETrue. Then CMsvEntry::ReadStoreL can give you the CMsvStore object, and the AttachmentManager provides you the attachments themselves.

  3. #3
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    111

    Re: Receiving MMS

    Hi,
    I succed on doing everything you are suggesting, but I have a problem with the AttachmentManager. This is a piece of code:

    CMsvStore* store = entry->ReadStoreL();
    if(store!= NULL) {
    CleanupStack::PushL(store);
    MMsvAttachmentManager& attManager = store->AttachmentManagerL();
    _LIT8(KMimeBuf, "text/plain");
    TBuf8<10>mimeBuf(KMimeBuf);

    // Cycle through the attachments
    for(TInt i=0; i<attManager.AttachmentCount(); i++)
    {
    CMsvAttachment* attachment = attManager.GetAttachmentInfoL(i);

    and so on....

    I can't compile correctly because the struct MMsvAttachmentManager is unknown... even if I have included the msvstore.h library:
    Am I missing something?

    best regards

    Manuela

    ps: the error is here attManager.AttachmentCount() and evey call to this element, not doing MMsvAttachmentManager& attManager = store->AttachmentManagerL();
    Last edited by manubemanu; 2009-06-19 at 14:23. Reason: Adding error info

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Receiving MMS

    if the MMsvAttachmentManager is sitll unknown, you could chekc the actual header from API docs: http://developer.symbian.com/main/do...agerClass.html

  5. #5
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    111

    Re: Receiving MMS

    Ok, I've included #include <MMsvAttachmentManager.h> and now it compile correctly...

    Thank you SymbianYucca

    Manuela

Similar Threads

  1. Emulator tools for MMS receiving / S60 / C++
    By jarkoos in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2007-01-10, 22:56
  2. What is MMS, EMS
    By roby2411 in forum General Messaging
    Replies: 0
    Last Post: 2006-12-24, 15:26
  3. Replies: 0
    Last Post: 2005-07-22, 21:27
  4. 7210 MMS vs. 7650 MMS ...
    By poncha in forum General Messaging
    Replies: 1
    Last Post: 2002-12-19, 11:07
  5. Receiving MMS with any WAP Push capable mobile equipment and a PC
    By pedrocarvalho in forum General Messaging
    Replies: 3
    Last Post: 2002-08-23, 00:58

Posting Permissions

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