Regarding MMS settings

Login to reply to this topic.
Sat, 2005-06-18 06:55
Joined: 2005-04-26
Forum posts: 10
Hi,
          I am able to get the values of MMS settings from the mobile using this code

                       iMmsClient = (CMmsClientMtm *) iClientMtmRegistry->NewMtmL(KUidMsgTypeMultimedia);       
            TInt  Flag = iMmsClient->DeliveryReport( ) ;
            TInt32 FlagRec = iMmsClient->MmsReceivingMode ( ) ;
            TInt32 FlagFet = iMmsClient->MessageFetchState  ( ) ;
            TBool FlagAd = iMmsClient->AcceptAdvertisements   ( ) ;

     but I am unable set the values of MMS settings into the mobile using this code

                                            iMmsClient->SetDeliveryReport  (EMmsDeliveryReportNo);
            iMmsClient->SetMmsReceivingMode  ( EMmsReceivingAlwaysEnabled ) ;
            iMmsClient->SetMessageFetchState  (  EMmsFetchingOff ) ;
            iMmsClient->SetAcceptAdvertisements   (  EFalse ) ;

    Is there any other API to set commit finally into the mobile. please help me.

       Thanks in advance
            

            

Thu, 2005-06-30 10:53
Joined: 2005-05-12
Forum posts: 26
Re: Regarding MMS settings
You almost got it Smiley. The only problem is, that you can't do anything with the CMmsClientMtm without having an entry selected.
For your settings, you need to select the default entry. And of course at the end you have to save this entry!

Code:
iMmsClient->SwitchCurrentEntryL(iMmsClient->DefaultSettingsL());
iMmsClient->LoadMessageL();

// change the necessary settings
iMmsClient->SetDeliveryReport  (EMmsDeliveryReportNo);
// ...

// save the settings
iMmsClient->SaveMessageL();
Mon, 2005-07-04 13:28
Joined: 2005-04-26
Forum posts: 10
Re: Regarding MMS settings
Thanks a lot uncle sam.

We have a doubt on E-Mail Settings also..

We have done the settings for all pop3 or all imap4 mailbox in E-Mail Settings.
But we dont know how to check for a particular pop3 or IMAP4 mailbox.
So far our settings API gets reflected in all pop3 or all imap4 mailboxes.
I want to set for a particular MailBox. how can I proceed .
Also can u tell me how to get a access point for a particular mailbox.

Can you please sugggest on this.

Mon, 2005-07-04 14:06
chishti_hameed (not verified)
Forum posts: 2043
Re: Regarding MMS settings
Quote from: gnanasek
Thanks a lot uncle sam.

We have a doubt on E-Mail Settings also..

We have done the settings for all pop3 or all imap4 mailbox in E-Mail Settings.
But we dont know how to check for a particular pop3 or IMAP4 mailbox.
So far our settings API gets reflected in all pop3 or all imap4 mailboxes.
I want to set for a particular MailBox. how can I proceed .
Also can u tell me how to get a access point for a particular mailbox.

Can you please sugggest on this.



Possible for you to share code regarding setting? It would be great help for me and many others Tongue 
Thu, 2005-07-07 06:32
Joined: 2005-04-26
Forum posts: 10
Re: Regarding MMS settings
         CMsvEntrySelection* rootChildren;

hi,
     Here is the code to set or get the values for all IMAP4 folders.
         TMsvSelectionOrdering ordering;
         CMsvEntry* iEntry = CMsvEntry::NewL(*iMsvSession, KMsvRootIndexEntryId, ordering );

         // Get all POP3 and Imap services
         rootChildren = iEntry->ChildrenL();
         CleanupStack::PushL(rootChildren);
         TMsvEntry entry;

         const TInt count = rootChildren->Count();
         TInt j =0;
         while(j < count )
         {

         // set context to service entry
         iEntry->SetEntryL((*rootChildren)[j]);
         entry = iEntry->Entry();
         if (entry.iType == KUidMsvServiceEntry && (entry.iMtm == KUidMsgTypePOP3 || entry.iMtm == KUidMsgTypeIMAP4))
            {
         CMsvStore* serviceStore = iEntry->EditStoreL();
            CleanupStack::PushL(serviceStore);

            TBuf8<8> port;

            if(entry.iMtm == KUidMsgTypeIMAP4)
                {
               CImImap4Settings* folder = new(ELeave)CImImap4Settings;
               CleanupStack::PushL(folder);
               folder->RestoreL( *serviceStore);

               TBuf8<100> login,loginset, passw,passwset;
               loginset =  _L8("login");
               passwset = _L8("passw");
               
               folder->SetLoginNameL(loginset);
               ...
               TPtrC8 name = folder->LoginName();
               ...               
               folder->StoreL(*serviceStore);
               serviceStore->CommitL();
       
                    Â                                               CleanupStack::PopAndDestroy();

               CleanupStack::PopAndDestroy();
                }


can u tell me how to fetch the remote mailbox name from the list
Thanks in advance.
Thu, 2005-07-07 07:14
chishti_hameed (not verified)
Forum posts: 2043
Re: Regarding MMS settings
thanks for code gnanasek, but i need help with GPRS/WAP/MMS setting..........
Specially GPRS. I need to create IAP using commdb or anyother way.


Wed, 2005-09-07 07:42
Joined: 2005-05-12
Forum posts: 26
Re: Regarding MMS settings
Sorry, chishti_hameed and gnanasek

I never worked with E-Mail nor with creating my own IAPs.
  • Login to reply to this topic.