calendarui/commonutils/src/calenviewutils.cpp
branchRCL_3
changeset 13 0f07cd1b5772
parent 12 38571fd2a704
child 20 21239b3bcd78
equal deleted inserted replaced
12:38571fd2a704 13:0f07cd1b5772
    91 
    91 
    92     // Every Copy and Append has to ensure that MaxLength is not exceed.
    92     // Every Copy and Append has to ensure that MaxLength is not exceed.
    93     const TInt max = aMaxLength;
    93     const TInt max = aMaxLength;
    94     TInt freeSpace = max - 2; // freeSpace is recalculated after each update
    94     TInt freeSpace = max - 2; // freeSpace is recalculated after each update
    95 
    95 
    96     const TDesC& summary = aEntry.SummaryL();
    96     const TDesC& summary = aEntry.SummaryL();    
    97     const TDesC& location = aEntry.LocationL();
    97     //const TDesC& location = aEntry.LocationL();    
    98     const TDesC& westernSeparator = KWesternSummaryLocationSeparator;
    98     const TDesC& westernSeparator = KWesternSummaryLocationSeparator;
    99     const TDesC& arabicSeparator =  KArabicSummaryLocationSeparator;
    99     const TDesC& arabicSeparator =  KArabicSummaryLocationSeparator;
       
   100     
       
   101     //location string is not available for anniversary and todo
       
   102     HBufC16* text = HBufC16::NewLC( max );    
       
   103     TPtrC location = text->Des();
       
   104     if ( CCalEntry::ETodo != aEntry.EntryTypeL())
       
   105         {
       
   106             location.Set(aEntry.LocationL());
       
   107         }
       
   108     
   100 
   109 
   101     if(AknLayoutUtils::LayoutMirrored())
   110     if(AknLayoutUtils::LayoutMirrored())
   102         {
   111         {
   103         aTarget.Append(KArabicSummaryMarker);
   112         aTarget.Append(KArabicSummaryMarker);
   104         }
   113         }
   148         HBufC* emptytext = StringLoader::LoadLC( R_CALEN_QTN_CALE_NO_SUBJECT );
   157         HBufC* emptytext = StringLoader::LoadLC( R_CALEN_QTN_CALE_NO_SUBJECT );
   149         aTarget.Copy( emptytext->Left( freeSpace ) );
   158         aTarget.Copy( emptytext->Left( freeSpace ) );
   150         freeSpace = max - aTarget.Length();
   159         freeSpace = max - aTarget.Length();
   151         CleanupStack::PopAndDestroy(emptytext);
   160         CleanupStack::PopAndDestroy(emptytext);
   152         }
   161         }
   153 
   162     CleanupStack::PopAndDestroy( text );
   154     TRACE_EXIT_POINT;
   163     TRACE_EXIT_POINT;
   155     }
   164     }
   156     
   165     
   157 // ----------------------------------------------------------------------------
   166 // ----------------------------------------------------------------------------
   158 // CalenNoteDataUtil::DateQueryL
   167 // CalenNoteDataUtil::DateQueryL