Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2008

    How to receive MMS

    Hi all,
    it is my first program in symbian and I am working in a project which requires monitoring the incoming MMS & checks if it is an audio MMs or not but when i begin to define the class I have errors and I do not know how to treat them ;plz help me
    here the class :
    #ifndef CRECIEVE_H_
    #define CRECIEVE_H_

    #include <e32base.h>
    #include <msvapi.h> // MMsvSessionObserver
    #include <msvids.h>
    #include <msvapi.h>
    #include <msventry.h>
    #include <e32cmn.h>
    #include <mmsconst.h>

    class Crecieve : public CActive, public MMsvSessionObserver
    CMsvSession* iSession;
    CMsvEntry *iMsvEntry;
    TMsvId iNewMessageId;
    virtual ~Crecieve();
    void HandleSessionEventL(TMsvSessionEvent, TAny*, TAny*, TAny*);
    void ProcessMMS();
    static Crecieve* NewL();
    static Crecieve* NewLC();
    void ConstructL();
    virtual void DoCancel();
    : CActive(EPriorityStandard) { CActiveScheduler::Add(this); }
    Crecieve* Crecieve::NewLC()
    Crecieve* me = new (ELeave) Crecieve(); // First phase construction
    me->ConstructL(); // Second phase construction
    return (me);
    Crecieve* Crecieve::NewL()
    Crecieve* me = Crecieve::NewLC();
    return (me);
    void Crecieve::ConstructL()
    // Create CMsvSession asynchronously
    iSession = CMsvSession::OpenAsyncL(*this);
    void Crecieve::HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3)
    switch (aEvent)
    case EMsvEntriesChanged:

    //reading the SMS here into a rich text object , after its entry has been finally created
    if (*(static_cast<TMsvId*>(aArg2)) == KMsvGlobalInBoxIndexEntryId)
    CMsvEntrySelection* entries = static_cast<CMsvEntrySelection*>(aArg1);
    if (iNewMessageId == entries->At(0))
    // Set entry context to the new message
    if(iMsvEntry->Entry().iMtm == KUidMsgTypeMultimedia)


    // do nothing
    void Crecieve::ProcessMMS()

    void Crecieve:oCancel()
    #endif /*CRECIEVE_H_*/

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: How to receive MMS

    What kind of errors do you get?
    Note that the language is C++, thus it is preferable having the declaration in a .h file, and the definition in a separate .cpp file (having the method definitions in the header-file can lead to ambiguity-errors if you #include your header in multiple locations).

  3. #3
    Registered User
    Join Date
    Mar 2008

    Re: How to receive MMS

    hi wizard_hu_
    u mean that i must write the definition of the functions of the header file in an cpp file?
    u mean in the CPP file contains the project ( e32main() )?
    am i write?
    also the Errors that i have are:
    Severity and Description Path Resource Location Creation Time Id
    illegal use of abstract class ('CActive:oCancel()') project/inc Crecieve.h line 31 1204990428421 608
    could u till me what's wrong?
    thx in advance

Similar Threads

  1. What is MMS, EMS
    By roby2411 in forum General Messaging
    Replies: 0
    Last Post: 2006-12-24, 15:26
  2. MMS receive problems (N70)
    By gsg2k3 in forum General Messaging
    Replies: 0
    Last Post: 2006-07-18, 13:30
  3. How to receive MMS at PC?
    By yanxiang in forum General Messaging
    Replies: 3
    Last Post: 2004-09-01, 06:04
  4. The way to receive a MMS
    By ernestkok in forum General Messaging
    Replies: 0
    Last Post: 2004-04-30, 10:08
  5. 7210 MMS vs. 7650 MMS ...
    By poncha in forum General Messaging
    Replies: 1
    Last Post: 2002-12-19, 11:07

Posting Permissions

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