×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2006
    Location
    London
    Posts
    34

    Gathering supported file types problem

    Hi i am writing a small peice of code which will list out the supported file extensions for each of the mmf plugins.

    Using SDK Version 2 Feature Pack 2 on CodeWarrior:

    RMMFControllerImplInfoArray controllers;
    CleanupResetAndDestroyPushL(controllers);

    CMMFControllerPluginSelectionParameters* cSelect = CMMFControllerPluginSelectionParameters::NewLC();
    CMMFFormatSelectionParameters* fSelectRead = CMMFFormatSelectionParameters::NewLC();
    CMMFFormatSelectionParameters* fSelectWrite = CMMFFormatSelectionParameters::NewLC();

    RArray<TUid> mediaIds;
    mediaIds.Append(KUidMediaTypeAudio);
    CleanupClosePushL(mediaIds);

    cSelect->SetMediaIdsL(mediaIds, CMMFPluginSelectionParameters::EAllowOnlySuppliedMediaIds);
    cSelect->SetRequiredPlayFormatSupportL(*fSelectRead);
    cSelect->SetRequiredRecordFormatSupportL(*fSelectWrite);
    cSelect->ListImplementationsL(controllers);

    TBuf<256> ext;
    for (TInt i = 0; i < controllers.Count(); i++)
    {
    const RMMFFormatImplInfoArray& recordInfo = controllers(i)->RecordFormats();
    for (TInt j = 0; j < recordInfo.Count(); j++)
    {
    const TDesC& displayName = recordInfo(j)->DisplayName();
    const CDesC8Array& extensions = recordInfo(j)->SupportedFileExtensions();
    for (TInt k = 0; k < 10/*extensions.Count()*/; k++)
    {
    ext.Copy(extensions(k));
    itemText = _L("\t");
    itemText.Append(displayName);
    itemText.Append(_L("\t"));
    itemText.Append(ext);
    itemArray->AppendL( itemText );
    }
    }
    }

    I have added in the header files for:
    mmf\common\mmfcontrollerpluginresolver.h
    mmf\common\MmfUtilities.h
    mmf\server\mmfdatasourcesink.hrh

    and the library:
    mmfcontrollerframework.lib

    I might not need some of these but i am playing around and adding things in. But i have been looking through the SDK trying to find what i a missing


    And i get these errors when i compile for either WINSCW or ARMI:

    call of non-function. These point to lines:

    const RMMFFormatImplInfoArray& recordInfo = controllers(i)->RecordFormats();
    const TDesC& displayName = recordInfo(j)->DisplayName();
    const CDesC8Array& extensions = recordInfo(j)->SupportedFileExtensions();

    I know the problem is trying to access the method calls. But i just can't see what i have missed out.
    Some pointers into my stupidity would be greatfully appreciated.

    Thanks
    Sandopolus

  2. #2
    Registered User
    Join Date
    Feb 2006
    Location
    London
    Posts
    34

    Re: Gathering supported file types problem

    I found my stupd problem.

    I had: controllers(i)
    Instead of: controllers[i]

    That will teach me for looking at examples too much.

Similar Threads

  1. problem while making sis file
    By kunal_the_one in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2004-08-04, 03:36
  2. JAD file problem with 3100/6100
    By rkanhere in forum Mobile Java General
    Replies: 3
    Last Post: 2004-06-24, 19:07
  3. JAD file problem with 3100/6100
    By rkanhere in forum Mobile Java General
    Replies: 0
    Last Post: 2004-06-21, 14:50
  4. Series 60 SDK Appwizard on windows xp
    By moonjoor in forum Symbian Tools & SDKs
    Replies: 15
    Last Post: 2003-12-24, 10:22
  5. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

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