equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
40 * |
40 * |
41 * Note: Empty string and "ERROR" string are managed already in HandleCommand() |
41 * Note: Empty string and "ERROR" string are managed already in HandleCommand() |
42 */ |
42 */ |
43 |
43 |
44 #include <ecom/ecom.h> |
44 #include <ecom/ecom.h> |
45 #include <ecom/implementationInformation.h> |
45 #include <ecom/implementationinformation.h> |
46 #include <atextpluginbase.h> |
46 #include <atextpluginbase.h> |
47 #include "atextclientsrv.h" |
47 #include "atextclientsrv.h" |
48 #include "atextmetadata.h" |
48 #include "atextmetadata.h" |
49 #include "atextlisten.h" |
49 #include "atextlisten.h" |
50 #include "utils.h" |
50 #include "utils.h" |
1367 case 'o': |
1367 case 'o': |
1368 aSupportType = ESupportTypeObserver; |
1368 aSupportType = ESupportTypeObserver; |
1369 break; |
1369 break; |
1370 default: |
1370 default: |
1371 _LIT( KPluginType, "PluginType" ); |
1371 _LIT( KPluginType, "PluginType" ); |
1372 User::Panic( KPluginType, EPanicCategoryPluginType ); |
1372 User::Panic( KPluginType, EPanicCategoryType ); |
1373 } |
1373 } |
1374 i++; |
1374 i++; |
1375 if ( i >= count ) |
1375 if ( i >= count ) |
1376 { |
1376 { |
1377 TRACE_FUNC_EXIT |
1377 TRACE_FUNC_EXIT |
1556 { |
1556 { |
1557 TRACE_FUNC_ENTRY |
1557 TRACE_FUNC_ENTRY |
1558 if ( aEntries->Count() > 0 ) |
1558 if ( aEntries->Count() > 0 ) |
1559 { |
1559 { |
1560 TATExtOneCmdSupport& oneCmdSupport = (*aEntries)[0]; |
1560 TATExtOneCmdSupport& oneCmdSupport = (*aEntries)[0]; |
|
1561 if ( oneCmdSupport.iSupportType == ESupportTypePartial ) |
|
1562 { |
|
1563 _LIT( KAddMIsP, "AddMIsP" ); |
|
1564 User::Panic( KAddMIsP, EPanicCategoryAddMIsP ); |
|
1565 } |
1561 if ( oneCmdSupport.iSupportType == ESupportTypeMaster ) |
1566 if ( oneCmdSupport.iSupportType == ESupportTypeMaster ) |
1562 { |
1567 { |
1563 _LIT( KFaultyMaster, "FaultyMaster" ); |
1568 _LIT( KAddMIsM, "AddMIsM" ); |
1564 User::Panic( KFaultyMaster, EPanicCategoryFaultyMaster ); |
1569 User::Panic( KAddMIsM, EPanicCategoryAddMIsM ); |
1565 } |
1570 } |
1566 } |
1571 } |
1567 aEntries->InsertL( 0, aOneCmdSupport ); |
1572 aEntries->InsertL( 0, aOneCmdSupport ); |
1568 if ( aSearchHelper.iPartialIndex >= 0 ) |
1573 if ( aSearchHelper.iPartialIndex >= 0 ) |
1569 { |
1574 { |
1586 CArrayFixFlat<TATExtOneCmdSupport>* aEntries, |
1591 CArrayFixFlat<TATExtOneCmdSupport>* aEntries, |
1587 TATExtSearchHelper& aSearchHelper, |
1592 TATExtSearchHelper& aSearchHelper, |
1588 TATExtOneCmdSupport& aOneCmdSupport ) |
1593 TATExtOneCmdSupport& aOneCmdSupport ) |
1589 { |
1594 { |
1590 TRACE_FUNC_ENTRY |
1595 TRACE_FUNC_ENTRY |
|
1596 if ( aEntries->Count() > 0 ) |
|
1597 { |
|
1598 TATExtOneCmdSupport& oneCmdSupport = (*aEntries)[0]; |
|
1599 if ( oneCmdSupport.iSupportType == ESupportTypeMaster ) |
|
1600 { |
|
1601 _LIT( KAddPIsM, "AddPIsM" ); |
|
1602 User::Panic( KAddPIsM, EPanicCategoryAddPIsM ); |
|
1603 } |
|
1604 } |
1591 TInt i = aSearchHelper.iPartialIndex; |
1605 TInt i = aSearchHelper.iPartialIndex; |
1592 if ( i < 0 ) |
1606 if ( i < 0 ) |
1593 { |
1607 { |
1594 TInt count = aEntries->Count(); |
1608 TInt count = aEntries->Count(); |
1595 for ( i=0; i<count; i++ ) |
1609 for ( i=0; i<count; i++ ) |