@@ -41,10 +41,15 @@ enyo.kind({
41
41
type : "facebook" ,
42
42
exists : true
43
43
} , {
44
- title : "Macaw" ,
45
- image : "images/icons/sparrow -32x32.png" ,
44
+ title : "Project Macaw" ,
45
+ image : "images/icons/macaw -32x32.png" ,
46
46
type : "macaw" ,
47
47
exists : true
48
+ } , {
49
+ title : "Quick Post" ,
50
+ image : "images/icons/quickpost-32x32.png" ,
51
+ type : "quickpost" ,
52
+ exists : true
48
53
} ] ,
49
54
components : [ {
50
55
name : "appCatalogService" ,
@@ -174,6 +179,8 @@ enyo.kind({
174
179
this . shareLinkViaSparrow ( ) ;
175
180
} else if ( shareServiceType === "macaw" ) {
176
181
this . shareLinkViaMacaw ( ) ;
182
+ } else if ( shareServiceType === "quickpost" ) {
183
+ this . shareLinkViaQuickpost ( ) ;
177
184
}
178
185
this . close ( ) ;
179
186
} ,
@@ -215,6 +222,12 @@ enyo.kind({
215
222
} ;
216
223
this . $ . launchApplicationService . call ( { id : "net.minego.phnx" , params : params } ) ;
217
224
} ,
225
+ shareLinkViaQuickpost : function ( ) {
226
+ var params = {
227
+ quickPost : $L ( "Check out this web page: " ) + this . url
228
+ }
229
+ this . $ . launchApplicationService . call ( { id : "com.hedami.quickpost" , params : params } ) ;
230
+ } ,
218
231
downloadFacebookApp : function ( ) {
219
232
this . log ( "Launching app catalog to download facebook" ) ;
220
233
this . $ . appCatalogService . call ( { id : "com.palm.app.enyo-findapps" , params : {
@@ -310,6 +323,33 @@ enyo.kind({
310
323
this . $ . shareList . renderRow ( index ) ;
311
324
}
312
325
} , this ) ;
326
+ }
327
+
328
+ foundQuickpost = apps . some ( function ( app ) {
329
+ this . log ( enyo . json . stringify ( app ) ) ;
330
+ if ( app . id === "com.hedami.quickpost" ) {
331
+
332
+
333
+ this . SHARE_LINK_LIST . some ( function ( shareService , index ) {
334
+ if ( shareService . title === "Quick Post" ) {
335
+ shareService . exists = true ;
336
+ shareService . checkExistance = false ;
337
+ this . $ . shareList . renderRow ( index ) ;
338
+ }
339
+ } , this ) ;
340
+ return true ;
341
+ }
342
+ } , this ) ;
343
+
344
+
345
+ if ( ! foundQuickpost ) {
346
+ this . SHARE_LINK_LIST . some ( function ( shareService , index ) {
347
+ if ( shareService . title === "Quick Post" ) {
348
+ shareService . exists = false ;
349
+ shareService . checkExistance = false ;
350
+ this . $ . shareList . renderRow ( index ) ;
351
+ }
352
+ } , this ) ;
313
353
}
314
354
} ,
315
355
launchAppCatalogSuccess : function ( inSender , inResponse ) {
0 commit comments