phoneuis/BubbleManager/Src/BMBubbleOutlookBottomCnap.cpp
branchRCL_3
changeset 34 b68fcd923911
parent 1 838b0a10d15b
equal deleted inserted replaced
31:ba54057fe027 34:b68fcd923911
   238             BubbleUtils::PrepareBubbleImageL( 
   238             BubbleUtils::PrepareBubbleImageL( 
   239                 iFrameId,
   239                 iFrameId,
   240                 outerRect,
   240                 outerRect,
   241                 innerRect,
   241                 innerRect,
   242                 iBubble );
   242                 iBubble );
   243                 
       
   244             if ( iHeader->CallObjectImage() &&
       
   245                  !iHeader->CallObjectText().Length() )
       
   246                 {
       
   247                 // Add transparency
       
   248                 BubbleUtils::AddTransparencyToBubbleImageL( 
       
   249                     KAknsIIDQsnFrCall2RectCoMask, // gradient tp mask
       
   250                     outerRect,
       
   251                     innerRect,
       
   252                     iBubble );                    
       
   253                 }    
       
   254                                 
   243                                 
   255             break;
   244             break;
   256             }
   245             }
   257         
   246         
   258         case CBubbleManager::EDisconnected:
   247         case CBubbleManager::EDisconnected:
   273             TRect innerRect;
   262             TRect innerRect;
   274             BubbleLayout2::BubbleFrameInnerOuterRects( frameRect, 
   263             BubbleLayout2::BubbleFrameInnerOuterRects( frameRect, 
   275                                                        outerRect, 
   264                                                        outerRect, 
   276                                                        innerRect);
   265                                                        innerRect);
   277         
   266         
   278             TAknsItemID coMaskFrameId;
       
   279             if ( callState == CBubbleManager::EOnHold )
   267             if ( callState == CBubbleManager::EOnHold )
   280                 {
   268                 {
   281                 iFrameId = KAknsIIDQsnFrCall2Bubble;
   269                 iFrameId = KAknsIIDQsnFrCall2Bubble;
   282                 coMaskFrameId = KAknsIIDQsnFrCall2BubbleCoMask;    
       
   283                 }
   270                 }
   284             else if ( callState == CBubbleManager::EDisconnected )
   271             else if ( callState == CBubbleManager::EDisconnected )
   285                 {
   272                 {
   286                 iFrameId = KAknsIIDQsnFrCall2BubbleFirstDisconn;
   273                 iFrameId = KAknsIIDQsnFrCall2BubbleFirstDisconn;           
   287                 coMaskFrameId = KAknsIIDQsnFrCall2BubbleFirstCoMask;            
       
   288                 }
   274                 }
   289             else
   275             else
   290                 {
   276                 {
   291                 iFrameId = KAknsIIDQsnFrCall2BubbleFirst;
   277                 iFrameId = KAknsIIDQsnFrCall2BubbleFirst;               
   292                 coMaskFrameId = KAknsIIDQsnFrCall2BubbleFirstCoMask;                
       
   293                 }                
   278                 }                
   294             
   279             
   295             // for possible frame draw
   280             // for possible frame draw
   296             iOuterRect = outerRect;
   281             iOuterRect = outerRect;
   297             iOuterRect.Move( Rect().iTl );
   282             iOuterRect.Move( Rect().iTl );
   366                 iFrameId,
   351                 iFrameId,
   367                 outerRect,
   352                 outerRect,
   368                 innerRect,
   353                 innerRect,
   369                 iBubble );
   354                 iBubble );
   370             
   355             
   371             
       
   372             // Add transparency
       
   373             BubbleUtils::AddTransparencyToBubbleImageL( 
       
   374                 coMaskFrameId,
       
   375                 outerRect,
       
   376                 innerRect,
       
   377                 iBubble ); 
       
   378             
       
   379                 
       
   380             break;
   356             break;
   381             }        
   357             }        
   382                 
   358                 
   383         default:
   359         default:
   384             break;
   360             break;